From a11b4c46b33a49501b81ce638474abd36b89582b Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Thu, 28 Feb 2019 07:56:53 -0800 Subject: Renamed PipelineLayoutDesc to PipelineResourceLayoutDesc --- Graphics/GraphicsEngine/include/PipelineStateBase.h | 12 ++++++------ Graphics/GraphicsEngine/include/ShaderResourceVariableBase.h | 12 ++++++------ Graphics/GraphicsEngine/interface/PipelineState.h | 4 ++-- 3 files changed, 14 insertions(+), 14 deletions(-) (limited to 'Graphics/GraphicsEngine') diff --git a/Graphics/GraphicsEngine/include/PipelineStateBase.h b/Graphics/GraphicsEngine/include/PipelineStateBase.h index fbc492e3..ddc682ef 100644 --- a/Graphics/GraphicsEngine/include/PipelineStateBase.h +++ b/Graphics/GraphicsEngine/include/PipelineStateBase.h @@ -66,7 +66,7 @@ public: m_LayoutElements (PSODesc.GraphicsPipeline.InputLayout.NumElements, LayoutElement{}, STD_ALLOCATOR_RAW_MEM(LayoutElement, GetRawAllocator(), "Allocator for vector")), m_NumShaders(0) { - const auto& SrcLayout = PSODesc.Layout; + const auto& SrcLayout = PSODesc.ResourceLayout; size_t StringPoolSize = 0; if (SrcLayout.Variables != nullptr) { @@ -81,7 +81,7 @@ public: } m_StringPool.Reserve(StringPoolSize, GetRawAllocator()); - auto& DstLayout = this->m_Desc.Layout; + auto& DstLayout = this->m_Desc.ResourceLayout; if (SrcLayout.Variables != nullptr) { ShaderResourceVariableDesc* Variables = @@ -266,10 +266,10 @@ public: */ auto& RawAllocator = GetRawAllocator(); - if (this->m_Desc.Layout.Variables != nullptr) - RawAllocator.Free(const_cast(this->m_Desc.Layout.Variables)); - if (this->m_Desc.Layout.StaticSamplers != nullptr) - RawAllocator.Free(const_cast(this->m_Desc.Layout.StaticSamplers)); + if (this->m_Desc.ResourceLayout.Variables != nullptr) + RawAllocator.Free(const_cast(this->m_Desc.ResourceLayout.Variables)); + if (this->m_Desc.ResourceLayout.StaticSamplers != nullptr) + RawAllocator.Free(const_cast(this->m_Desc.ResourceLayout.StaticSamplers)); } IMPLEMENT_QUERY_INTERFACE_IN_PLACE( IID_PipelineState, TDeviceObjectBase ) diff --git a/Graphics/GraphicsEngine/include/ShaderResourceVariableBase.h b/Graphics/GraphicsEngine/include/ShaderResourceVariableBase.h index 5c5629d3..2282a3f7 100644 --- a/Graphics/GraphicsEngine/include/ShaderResourceVariableBase.h +++ b/Graphics/GraphicsEngine/include/ShaderResourceVariableBase.h @@ -66,9 +66,9 @@ inline SHADER_RESOURCE_VARIABLE_TYPE GetShaderVariableType(SHADER_TYPE ); } -inline SHADER_RESOURCE_VARIABLE_TYPE GetShaderVariableType(SHADER_TYPE ShaderStage, - const Char* Name, - const PipelineLayoutDesc& LayoutDesc) +inline SHADER_RESOURCE_VARIABLE_TYPE GetShaderVariableType(SHADER_TYPE ShaderStage, + const Char* Name, + const PipelineResourceLayoutDesc& LayoutDesc) { return GetShaderVariableType(ShaderStage, Name, LayoutDesc.DefaultVariableType, LayoutDesc.Variables, LayoutDesc.NumVariables); } @@ -87,9 +87,9 @@ inline SHADER_RESOURCE_VARIABLE_TYPE GetShaderVariableType(SHADER_TYPE ); } -inline SHADER_RESOURCE_VARIABLE_TYPE GetShaderVariableType(SHADER_TYPE ShaderStage, - const String& Name, - const PipelineLayoutDesc& LayoutDesc) +inline SHADER_RESOURCE_VARIABLE_TYPE GetShaderVariableType(SHADER_TYPE ShaderStage, + const String& Name, + const PipelineResourceLayoutDesc& LayoutDesc) { return GetShaderVariableType(ShaderStage, Name, LayoutDesc.DefaultVariableType, LayoutDesc.Variables, LayoutDesc.NumVariables); } diff --git a/Graphics/GraphicsEngine/interface/PipelineState.h b/Graphics/GraphicsEngine/interface/PipelineState.h index 39064c75..61a4e68e 100644 --- a/Graphics/GraphicsEngine/interface/PipelineState.h +++ b/Graphics/GraphicsEngine/interface/PipelineState.h @@ -108,7 +108,7 @@ struct StaticSamplerDesc /// Pipeline layout description -struct PipelineLayoutDesc +struct PipelineResourceLayoutDesc { /// Default shader resource variable type. This type will be used if shader /// variable description is not found in the Variables array @@ -221,7 +221,7 @@ struct PipelineStateDesc : DeviceObjectAttribs Uint64 CommandQueueMask = 1; /// Pipeline layout description - PipelineLayoutDesc Layout; + PipelineResourceLayoutDesc ResourceLayout; /// Graphics pipeline state description. This memeber is ignored if IsComputePipeline == True GraphicsPipelineDesc GraphicsPipeline; -- cgit v1.2.3