![]() |
wisdom
|
C version:
C++ version:
Texture state for resource transitions.
D3D12_BARRIER_LAYOUT for DirectX 12 implementation, and VkImageLayout for Vulkan implementation.Values:
WisTextureStateUndefined = -1: Undefined state.WisTextureStateCommon = 0: Common state.WisTextureStateRead = 1: General Read state.WisTextureStateRenderTarget = 2: Render Target state.WisTextureStateUnorderedAccess = 3: Unordered Access state.WisTextureStateDepthStencilWrite = 4: Depth Stencil Write state.WisTextureStateDepthStencilRead = 5: Depth Stencil Read state.WisTextureStateDepthWriteStencilRead = 6: Depth Write Stencil Read state.WisTextureStateStencilWriteDepthRead = 7: Stencil Write Depth Read state.WisTextureStateShaderResource = 8: Shader Resource state.WisTextureStateCopySrc = 9: Copy Source state.WisTextureStateCopyDst = 10: Copy Destination state.WisTextureStatePresent = 11: Present swapchain state.WisTextureStateShadingRate = 12: Shading Rate state. Used for Variable Shading Rate.WisTextureStateVideoDecodeRead = 13: Video Decode Read state.WisTextureStateVideoDecodeWrite = 14: Video Decode Write state.WisTextureStateResolveDepthStensilDst = 15: Depth Stencil Resolve Destination state.WisTextureStateResolveRenderTargetDst = 16: Render Target Resolve Destination state.