summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineVulkan
diff options
context:
space:
mode:
authorazhirnov <zh1dron@gmail.com>2020-10-08 20:51:30 +0000
committerazhirnov <zh1dron@gmail.com>2020-10-08 20:51:30 +0000
commitbff90b395a3cbcc96a199cf8db95309b13e8e855 (patch)
tree9cd99dff9868765f99750fb18127cdcf160bed0a /Graphics/GraphicsEngineVulkan
parentRevert some changes in ShaderResourceLayoutVk, fixed PSO comparison (diff)
downloadDiligentCore-bff90b395a3cbcc96a199cf8db95309b13e8e855.tar.gz
DiligentCore-bff90b395a3cbcc96a199cf8db95309b13e8e855.zip
formating
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
-rw-r--r--Graphics/GraphicsEngineVulkan/include/ShaderResourceLayoutVk.hpp2
-rw-r--r--Graphics/GraphicsEngineVulkan/src/PipelineStateVkImpl.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Graphics/GraphicsEngineVulkan/include/ShaderResourceLayoutVk.hpp b/Graphics/GraphicsEngineVulkan/include/ShaderResourceLayoutVk.hpp
index 4d29093d..c6432f4a 100644
--- a/Graphics/GraphicsEngineVulkan/include/ShaderResourceLayoutVk.hpp
+++ b/Graphics/GraphicsEngineVulkan/include/ShaderResourceLayoutVk.hpp
@@ -308,7 +308,7 @@ public:
{
return m_pResources->GetShaderType();
}
-
+
const SPIRVShaderResources& GetResources() const { return *m_pResources; }
const VkResource& GetResource(SHADER_RESOURCE_VARIABLE_TYPE VarType, Uint32 r) const
diff --git a/Graphics/GraphicsEngineVulkan/src/PipelineStateVkImpl.cpp b/Graphics/GraphicsEngineVulkan/src/PipelineStateVkImpl.cpp
index f40f22c8..881196ec 100644
--- a/Graphics/GraphicsEngineVulkan/src/PipelineStateVkImpl.cpp
+++ b/Graphics/GraphicsEngineVulkan/src/PipelineStateVkImpl.cpp
@@ -575,7 +575,7 @@ bool PipelineStateVkImpl::IsCompatibleWith(const IPipelineState* pPSO) const
IsCompatibleShaders = false;
break;
}
-
+
const auto& Res0 = GetShaderResLayout(s).GetResources();
const auto& Res1 = pPSOVk->GetShaderResLayout(s).GetResources();
if (!Res0.IsCompatibleWith(Res1))