Misleading error message when f64 is used in shader #4559
Labels
area: validation
Issues related to validation, diagnostics, and error handling
kind: diagnostics
Error message should be better
naga
Shader Translator
When using a double-precision float in a shader without enabling the wgpu SHADER_F64 feature, the validation fails with this error message:
https://github.com/gfx-rs/naga/blob/f31093fb3b0c8183069037fcac99a90d3adef2bd/src/valid/mod.rs#L306-L310
This throws an invalid type error even though
spirv-val
andnaga-cli
pass.Does it make sense to throw a more descriptive error here?
https://github.com/gfx-rs/naga/blob/f31093fb3b0c8183069037fcac99a90d3adef2bd/src/valid/type.rs#L217-L224
The text was updated successfully, but these errors were encountered: