From 250b656204dee014074b093c6b60c179a25fbbf7 Mon Sep 17 00:00:00 2001 From: assiduous Date: Sun, 14 Mar 2021 20:12:37 -0700 Subject: Refactored D3D11 resource cache --- Graphics/GraphicsEngineOpenGL/include/PipelineResourceAttribsGL.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Graphics/GraphicsEngineOpenGL') diff --git a/Graphics/GraphicsEngineOpenGL/include/PipelineResourceAttribsGL.hpp b/Graphics/GraphicsEngineOpenGL/include/PipelineResourceAttribsGL.hpp index b668411c..9df6ddd6 100644 --- a/Graphics/GraphicsEngineOpenGL/include/PipelineResourceAttribsGL.hpp +++ b/Graphics/GraphicsEngineOpenGL/include/PipelineResourceAttribsGL.hpp @@ -50,9 +50,10 @@ public: // clang-format off const Uint32 CacheOffset; // SRB and Signature use the same cache offsets for static resources. - // Binding == BaseBinding[Range] + CacheOffset + // (thanks to sorting variables by type, where all static vars go first). + // Binding == BaseBinding[Range] + CacheOffset const Uint32 SamplerInd : _SamplerIndBits; // ImtblSamplerAssigned == true: index of the immutable sampler in m_ImmutableSamplers. - // ImtblSamplerAssigned == false: index of the assigned sampler in m_Desc.Resources. + // ImtblSamplerAssigned == false: index of the assigned sampler in m_Desc.Resources. const Uint32 ImtblSamplerAssigned : _SamplerAssignedBits; // Immutable sampler flag // clang-format on -- cgit v1.2.3