RSX/D3D12: Improve shader lookup performance

This commit is contained in:
Vincent Lejeune 2015-08-24 20:27:42 +02:00
parent 9c24bb9d75
commit 095c8fa19b
2 changed files with 29 additions and 0 deletions

View file

@ -223,6 +223,8 @@ private:
{
size_t hashValue = 0;
hashValue ^= std::hash<unsigned>()(key.vpIdx);
hashValue ^= std::hash<unsigned>()(key.fpIdx);
hashValue ^= std::hash<typename BackendTraits::PipelineProperties>()(key.properties);
return hashValue;
}
};