mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-02 22:28:45 +00:00
allow empty array in ShouldSkipShader
This commit is contained in:
parent
9f2991e49f
commit
6d7df8aad7
1 changed files with 2 additions and 3 deletions
|
@ -64,9 +64,8 @@ const ComputePipeline* PipelineCache::GetComputePipeline() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ShouldSkipShader(u64 shader_hash, const char* shader_type) {
|
bool ShouldSkipShader(u64 shader_hash, const char* shader_type) {
|
||||||
static constexpr u64 skip_hashes[] = {0xdeadbeefULL};
|
static constexpr std::array<u64, 0> skip_hashes = {};
|
||||||
if (std::ranges::find(std::begin(skip_hashes), std::end(skip_hashes), shader_hash) !=
|
if (std::ranges::find(skip_hashes.begin(), skip_hashes.end(), shader_hash) != skip_hashes.end()) {
|
||||||
std::end(skip_hashes)) {
|
|
||||||
LOG_WARNING(Render_Vulkan, "Skipped {} shader hash {:#x}.", shader_type, shader_hash);
|
LOG_WARNING(Render_Vulkan, "Skipped {} shader hash {:#x}.", shader_type, shader_hash);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue