wgpu: Ignore spec constants greater than 10 (#8789)

This commit is contained in:
Juan Caldas
2025-05-29 15:58:35 -04:00
committed by GitHub
parent 47930edf70
commit eb07decb4b

View File

@@ -163,7 +163,7 @@ std::vector<wgpu::ConstantEntry> convertConstants(
// CONFIG_SRGB_SWAPCHAIN_EMULATION (3) is being skipped all together since it's only
// included for the case of mFeatureLevel == FeatureLevel::FEATURE_LEVEL_0, which should
// not be possible for WebGPU
if (constant.id == 1 || constant.id == 3 || constant.id == 4) {
if (constant.id == 1 || constant.id == 3 || constant.id == 4 || constant.id > 10 ) {
continue;
}
double value = 0.0;