google / graphicsfuzz

A testing framework for automatically finding and simplifying bugs in graphics shader compilers.
Apache License 2.0
561 stars 117 forks source link

Allow restricting to WGSL-supported builtins #1159

Closed afd closed 2 years ago

afd commented 2 years ago

GraphicsFuzz can be used to test WGSL implementations, via translators from GLSL to WGSL (possibly via SPIR-V). But this only works for shaders that are WGSL compatible. This change adds an option to control this, and avoids generating a number of builtins that are not currently supported in the WGSL spec.