Relax vector, matrix and array OOB validation #4390
Labels
area: validation
Issues related to validation, diagnostics, and error handling
naga
Shader Translator
Milestone
Relax vector, matrix and array OOB validation by handling OOB accesses at runtime.
The following example should work; however, validation currently errors because the index is out of bounds.
[edit] Note that WGSL says that
let
-bound identifiers cannot be constant expressions, so the shader translation time bounds checking rules do not apply to this example.Related
The text was updated successfully, but these errors were encountered: