diff options
| author | azhirnov <zh1dron@gmail.com> | 2021-01-30 13:21:53 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2021-02-04 04:58:27 +0000 |
| commit | 3948fc345b99465f2d792114d06d0e374465ce3d (patch) | |
| tree | 7e6846c123c4680498457a561b8e5f1c92bc9aa7 /Graphics/GraphicsEngineVulkan | |
| parent | Some refactoring of DXBCUtils (diff) | |
| download | DiligentCore-3948fc345b99465f2d792114d06d0e374465ce3d.tar.gz DiligentCore-3948fc345b99465f2d792114d06d0e374465ce3d.zip | |
update for vulkan PRS
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
| -rw-r--r-- | Graphics/GraphicsEngineVulkan/include/PipelineLayoutVk.hpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Graphics/GraphicsEngineVulkan/include/PipelineLayoutVk.hpp b/Graphics/GraphicsEngineVulkan/include/PipelineLayoutVk.hpp index 72b6f6ef..eed3507d 100644 --- a/Graphics/GraphicsEngineVulkan/include/PipelineLayoutVk.hpp +++ b/Graphics/GraphicsEngineVulkan/include/PipelineLayoutVk.hpp @@ -61,10 +61,16 @@ public: } // Returns the index of the first descriptor set used by the given resource signature - Uint32 GetFirstDescrSetIndex(const IPipelineResourceSignature* pPRS) const + Uint32 GetFirstDescrSetIndex(const PipelineResourceSignatureVkImpl* pPRS) const { + VERIFY_EXPR(pPRS != nullptr); Uint32 Index = pPRS->GetDesc().BindingIndex; - return Index < m_SignatureCount ? m_FirstDescrSetIndex[Index] : ~0u; + + VERIFY_EXPR(Index < m_SignatureCount); + VERIFY_EXPR(m_Signatures[Index] != nullptr); + VERIFY_EXPR(!m_Signatures[Index]->IsIncompatibleWith(*pPRS)); + + return m_FirstDescrSetIndex[Index]; } struct ResourceInfo |
