File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,8 @@ bool COpenGLPipelineCache::SCacheKey::operator<(const COpenGLPipelineCache::SCac
66
66
{
67
67
if (hash < _rhs.hash ) return true ;
68
68
if (_rhs.hash < hash) return false ;
69
+ if (shaderStage < _rhs.shaderStage ) return true ;
70
+ if (_rhs.shaderStage < shaderStage) return false ;
69
71
if (info < _rhs.info ) return true ;
70
72
if (_rhs.info < info) return false ;
71
73
for (uint32_t i = 0u ; i < IGPUPipelineLayout::DESCRIPTOR_SET_COUNT; ++i)
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ class COpenGLPipelineCache final : public IGPUPipelineCache
26
26
std::array<uint64_t , 4 > hash;
27
27
COpenGLSpecializedShader::SInfo info;
28
28
core::smart_refctd_ptr<COpenGLPipelineLayout> layout;
29
+ asset::IShader::E_SHADER_STAGE shaderStage = asset::IShader::ESS_UNKNOWN;
29
30
30
31
bool operator <(const SCacheKey& _rhs) const ;
31
32
};
You can’t perform that action at this time.
0 commit comments