diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2021-03-15 03:12:37 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2021-03-19 00:38:23 +0000 |
| commit | 250b656204dee014074b093c6b60c179a25fbbf7 (patch) | |
| tree | 8d31b0c9d94917a952b70e2a7fb99a277ddada20 /Graphics/GraphicsEngineOpenGL | |
| parent | D3D11 backend: some header clean-up plus few minor updates (diff) | |
| download | DiligentCore-250b656204dee014074b093c6b60c179a25fbbf7.tar.gz DiligentCore-250b656204dee014074b093c6b60c179a25fbbf7.zip | |
Refactored D3D11 resource cache
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
| -rw-r--r-- | Graphics/GraphicsEngineOpenGL/include/PipelineResourceAttribsGL.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
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 |
