Skip to content

Commit 025968e

Browse files
committed
Added ShaderStage to COpenGLPipelineCache::SCacheKey
1 parent 9fe3d7b commit 025968e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/nbl/video/COpenGLPipelineCache.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ bool COpenGLPipelineCache::SCacheKey::operator<(const COpenGLPipelineCache::SCac
6666
{
6767
if (hash < _rhs.hash) return true;
6868
if (_rhs.hash < hash) return false;
69+
if (shaderStage < _rhs.shaderStage) return true;
70+
if (_rhs.shaderStage < shaderStage) return false;
6971
if (info < _rhs.info) return true;
7072
if (_rhs.info < info) return false;
7173
for (uint32_t i = 0u; i < IGPUPipelineLayout::DESCRIPTOR_SET_COUNT; ++i)

src/nbl/video/COpenGLPipelineCache.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class COpenGLPipelineCache final : public IGPUPipelineCache
2626
std::array<uint64_t, 4> hash;
2727
COpenGLSpecializedShader::SInfo info;
2828
core::smart_refctd_ptr<COpenGLPipelineLayout> layout;
29+
asset::IShader::E_SHADER_STAGE shaderStage = asset::IShader::ESS_UNKNOWN;
2930

3031
bool operator<(const SCacheKey& _rhs) const;
3132
};

0 commit comments

Comments
 (0)