From 87e70a1a99396767ab519aceebd843c1eb2da223 Mon Sep 17 00:00:00 2001 From: assiduous Date: Fri, 19 Feb 2021 14:03:18 -0800 Subject: PipelineResourceSignatureD3D12Impl: some refactoring --- .../src/PipelineResourceSignatureVkImpl.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'Graphics/GraphicsEngineVulkan') 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(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; } -- cgit v1.2.3