simpler check for skip hashes

This commit is contained in:
jnack 2024-08-30 11:19:25 -05:00
parent 6d7df8aad7
commit f996e4f204

View file

@ -65,7 +65,7 @@ const ComputePipeline* PipelineCache::GetComputePipeline() {
bool ShouldSkipShader(u64 shader_hash, const char* shader_type) {
static constexpr std::array<u64, 0> skip_hashes = {};
if (std::ranges::find(skip_hashes.begin(), skip_hashes.end(), shader_hash) != skip_hashes.end()) {
if (std::ranges::contains(skip_hashes, shader_hash)) {
LOG_WARNING(Render_Vulkan, "Skipped {} shader hash {:#x}.", shader_type, shader_hash);
return true;
}