From 079a419d17100306c436a14a93eccf156ba08b7d Mon Sep 17 00:00:00 2001 From: assiduous Date: Thu, 17 Sep 2020 22:18:20 -0700 Subject: Fixed gcc/clang error --- .../GraphicsEngine/include/PipelineStateBase.hpp | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'Graphics/GraphicsEngine') diff --git a/Graphics/GraphicsEngine/include/PipelineStateBase.hpp b/Graphics/GraphicsEngine/include/PipelineStateBase.hpp index 91cf912c..b54a2f76 100644 --- a/Graphics/GraphicsEngine/include/PipelineStateBase.hpp +++ b/Graphics/GraphicsEngine/include/PipelineStateBase.hpp @@ -454,19 +454,19 @@ protected: protected: Int8 GetStaticVariableCountHelper(SHADER_TYPE ShaderType, const std::array& ResourceLayoutIndex) const { - if (!IsConsistentShaderType(ShaderType, m_Desc.PipelineType)) + if (!IsConsistentShaderType(ShaderType, this->m_Desc.PipelineType)) { LOG_WARNING_MESSAGE("Unable to get the number of static variables in shader stage ", GetShaderTypeLiteralName(ShaderType), - " as the stage is invalid for ", GetPipelineTypeString(m_Desc.PipelineType), " pipeline '", m_Desc.Name, "'"); + " as the stage is invalid for ", GetPipelineTypeString(this->m_Desc.PipelineType), " pipeline '", this->m_Desc.Name, "'"); return -1; } - const auto ShaderTypeInd = GetShaderTypePipelineIndex(ShaderType, m_Desc.PipelineType); + const auto ShaderTypeInd = GetShaderTypePipelineIndex(ShaderType, this->m_Desc.PipelineType); const auto LayoutInd = ResourceLayoutIndex[ShaderTypeInd]; if (LayoutInd < 0) { LOG_WARNING_MESSAGE("Unable to get the number of static variables in shader stage ", GetShaderTypeLiteralName(ShaderType), - " as the stage is inactive in PSO '", m_Desc.Name, "'"); + " as the stage is inactive in PSO '", this->m_Desc.Name, "'"); } return LayoutInd; @@ -474,19 +474,19 @@ protected: Int8 GetStaticVariableByNameHelper(SHADER_TYPE ShaderType, const Char* Name, const std::array& ResourceLayoutIndex) const { - if (!IsConsistentShaderType(ShaderType, m_Desc.PipelineType)) + if (!IsConsistentShaderType(ShaderType, this->m_Desc.PipelineType)) { LOG_WARNING_MESSAGE("Unable to find static variable '", Name, "' in shader stage ", GetShaderTypeLiteralName(ShaderType), - " as the stage is invalid for ", GetPipelineTypeString(m_Desc.PipelineType), " pipeline '", m_Desc.Name, "'"); + " as the stage is invalid for ", GetPipelineTypeString(this->m_Desc.PipelineType), " pipeline '", this->m_Desc.Name, "'"); return -1; } - const auto ShaderTypeInd = GetShaderTypePipelineIndex(ShaderType, m_Desc.PipelineType); + const auto ShaderTypeInd = GetShaderTypePipelineIndex(ShaderType, this->m_Desc.PipelineType); const auto LayoutInd = ResourceLayoutIndex[ShaderTypeInd]; if (LayoutInd < 0) { LOG_WARNING_MESSAGE("Unable to find static variable '", Name, "' in shader stage ", GetShaderTypeLiteralName(ShaderType), - " as the stage is inactive in PSO '", m_Desc.Name, "'"); + " as the stage is inactive in PSO '", this->m_Desc.Name, "'"); } return LayoutInd; @@ -494,19 +494,19 @@ protected: Int8 GetStaticVariableByIndexHelper(SHADER_TYPE ShaderType, Uint32 Index, const std::array& ResourceLayoutIndex) const { - if (!IsConsistentShaderType(ShaderType, m_Desc.PipelineType)) + if (!IsConsistentShaderType(ShaderType, this->m_Desc.PipelineType)) { LOG_WARNING_MESSAGE("Unable to get static variable at index ", Index, " in shader stage ", GetShaderTypeLiteralName(ShaderType), - " as the stage is invalid for ", GetPipelineTypeString(m_Desc.PipelineType), " pipeline '", m_Desc.Name, "'"); + " as the stage is invalid for ", GetPipelineTypeString(this->m_Desc.PipelineType), " pipeline '", this->m_Desc.Name, "'"); return -1; } - const auto ShaderTypeInd = GetShaderTypePipelineIndex(ShaderType, m_Desc.PipelineType); + const auto ShaderTypeInd = GetShaderTypePipelineIndex(ShaderType, this->m_Desc.PipelineType); const auto LayoutInd = ResourceLayoutIndex[ShaderTypeInd]; if (LayoutInd < 0) { LOG_WARNING_MESSAGE("Unable to get static variable at index ", Index, " in shader stage ", GetShaderTypeLiteralName(ShaderType), - " as the stage is inactive in PSO '", m_Desc.Name, "'"); + " as the stage is inactive in PSO '", this->m_Desc.Name, "'"); } return LayoutInd; -- cgit v1.2.3