diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2021-02-19 22:03:18 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2021-03-19 00:38:09 +0000 |
| commit | 87e70a1a99396767ab519aceebd843c1eb2da223 (patch) | |
| tree | fefacfc8cc6cb83360bfcdcf63afab5289af8b1f /Graphics/GraphicsEngineVulkan | |
| parent | D3D12 comamnd context: updated state transitions for RT acceleration structures (diff) | |
| download | DiligentCore-87e70a1a99396767ab519aceebd843c1eb2da223.tar.gz DiligentCore-87e70a1a99396767ab519aceebd843c1eb2da223.zip | |
PipelineResourceSignatureD3D12Impl: some refactoring
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
| -rw-r--r-- | Graphics/GraphicsEngineVulkan/src/PipelineResourceSignatureVkImpl.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/Graphics/GraphicsEngineVulkan/src/PipelineResourceSignatureVkImpl.cpp b/Graphics/GraphicsEngineVulkan/src/PipelineResourceSignatureVkImpl.cpp index 36ba9075..38fa6670 100644 --- a/Graphics/GraphicsEngineVulkan/src/PipelineResourceSignatureVkImpl.cpp +++ b/Graphics/GraphicsEngineVulkan/src/PipelineResourceSignatureVkImpl.cpp @@ -55,18 +55,6 @@ inline bool ResourcesCompatible(const PipelineResourceSignatureVkImpl::ResourceA // clang-format on } -inline bool ResourcesCompatible(const PipelineResourceDesc& lhs, const PipelineResourceDesc& rhs) -{ - // Ignore resource names. - // clang-format off - return lhs.ShaderStages == rhs.ShaderStages && - lhs.ArraySize == rhs.ArraySize && - lhs.ResourceType == rhs.ResourceType && - lhs.VarType == rhs.VarType && - lhs.Flags == rhs.Flags; - // clang-format on -} - inline VkDescriptorType GetVkDescriptorType(DescriptorType Type) { static_assert(static_cast<Uint32>(DescriptorType::Count) == 15, "Please update the switch below to handle the new descriptor type"); @@ -749,7 +737,7 @@ bool PipelineResourceSignatureVkImpl::IsCompatibleWith(const PipelineResourceSig for (Uint32 r = 0; r < LResCount; ++r) { if (!ResourcesCompatible(GetResourceAttribs(r), Other.GetResourceAttribs(r)) || - !ResourcesCompatible(GetResourceDesc(r), Other.GetResourceDesc(r))) + !PipelineResourcesCompatible(GetResourceDesc(r), Other.GetResourceDesc(r))) return false; } |
