From 5ea80a116bc5ff82d8ef10243f7fba103a4d0961 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Mon, 19 Nov 2018 21:26:49 -0800 Subject: Implemented explicit layout transitions in Vulkan backend --- Graphics/GraphicsEngine/interface/GraphicsTypes.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'Graphics/GraphicsEngine') diff --git a/Graphics/GraphicsEngine/interface/GraphicsTypes.h b/Graphics/GraphicsEngine/interface/GraphicsTypes.h index 384f1543..b542bde9 100644 --- a/Graphics/GraphicsEngine/interface/GraphicsTypes.h +++ b/Graphics/GraphicsEngine/interface/GraphicsTypes.h @@ -1651,8 +1651,8 @@ namespace Diligent /// Resource state transition barrier description struct StateTransitionDesc { - static constexpr const Uint32 AllMipLevels = static_cast(-1); - static constexpr const Uint32 AllArraySlices = static_cast(-1); + static constexpr const Uint32 RemainingMipLevels = static_cast(-1); + static constexpr const Uint32 RemainingArraySlices = static_cast(-1); /// Texture to transition. /// \note Exactly one of pTexture or pBuffer must be non-null. @@ -1666,13 +1666,13 @@ namespace Diligent Uint32 FirstMipLevel = 0; /// When transitioning a texture, number of mip levels of the subresource range to transition. - Uint32 MipLevelsCount = AllMipLevels; + Uint32 MipLevelsCount = RemainingMipLevels; /// When transitioning a texture, first array slice of the subresource range to transition. Uint32 FirstArraySlice = 0; /// When transitioning a texture, number of array slices of the subresource range to transition. - Uint32 ArraySliceCount = AllArraySlices; + Uint32 ArraySliceCount = RemainingArraySlices; /// Resource state before transition. If this value is RESOURCE_STATE_UNKNOWN, /// internal resource state will be used, which must be defined in this case. @@ -1696,9 +1696,9 @@ namespace Diligent RESOURCE_STATE _OldState, RESOURCE_STATE _NewState, Uint32 _FirstMipLevel = 0, - Uint32 _MipLevelsCount = AllMipLevels, + Uint32 _MipLevelsCount = RemainingMipLevels, Uint32 _FirstArraySlice = 0, - Uint32 _ArraySliceCount = AllArraySlices, + Uint32 _ArraySliceCount = RemainingArraySlices, bool _UpdateState = false) : pTexture (_pTexture), FirstMipLevel (_FirstMipLevel), @@ -1714,7 +1714,7 @@ namespace Diligent RESOURCE_STATE _OldState, RESOURCE_STATE _NewState, bool _UpdateState) : - StateTransitionDesc(_pTexture, _OldState, _NewState, 0, AllMipLevels, 0, AllArraySlices, _UpdateState) + StateTransitionDesc(_pTexture, _OldState, _NewState, 0, RemainingMipLevels, 0, RemainingArraySlices, _UpdateState) {} StateTransitionDesc(IBuffer* _pBuffer, -- cgit v1.2.3