| 1 | #pragma once |
| 2 | |
| 3 | #include <nn/gfx/detail/gfx_Misc.h> |
| 4 | #include <nn/gfx/gfx_Common.h> |
| 5 | #include <nn/nn_BitTypes.h> |
| 6 | #include <nn/util/util_BitPack.h> |
| 7 | |
| 8 | namespace nn::gfx { |
| 9 | |
| 10 | template <> |
| 11 | struct BufferImplData<ApiVariationNvn8> { |
| 12 | enum State { State_NotInitialized, State_Initialized }; |
| 13 | |
| 14 | enum Flag { Flag_Shared, Flag_CpuCached }; |
| 15 | |
| 16 | Bit8 state; |
| 17 | nn::util::BitPack8 flags; |
| 18 | char reserved[6]; |
| 19 | detail::Ptr<void> pNvnBuffer; |
| 20 | char nvnBuffer[48]; |
| 21 | detail::Ptr<void> userPtr; |
| 22 | }; |
| 23 | |
| 24 | template <> |
| 25 | struct BufferTextureViewImplData<ApiVariationNvn8> { |
| 26 | enum State { State_NotInitialized, State_Initialized }; |
| 27 | enum Flag { Flag_Shared }; |
| 28 | |
| 29 | Bit8 state; |
| 30 | nn::util::BitPack8 flags; |
| 31 | char reserved[6]; |
| 32 | char nvnTexture[192]; |
| 33 | detail::Ptr<void> pNvnTexture; |
| 34 | }; |
| 35 | |
| 36 | } // namespace nn::gfx |