Accept only {f,i,u}32
s when in strict WebGPU compliance
#7017
Labels
area: correctness
We're behaving incorrectly
area: ecosystem
Help the connected projects grow and prosper
area: validation
Issues related to validation, diagnostics, and error handling
kind: diagnostics
Error message should be better
type: bug
Something isn't working
Description
While writing #7016, I noticed that the diagnostic there stated that
f64
andbool
are accepted sampled types. That's great!…except that they shouldn't be allowed on strictly WebGPU-compliant environments. Section 6.5.2 of the WebGPU spec. states (in relation to sampled texture types):Remedying this might require a new native-only feature, though one might already exist that I'm not aware of.
Repro steps
Run
naga-cli
on the following:Observe that it prints the following:
Expected vs observed behavior
The set of "valid scalar types" (which could stand to be called "sampled types" instead) should
f32
,i32
, andu32
when only the feature flags inwgpu::Features::all_webgpu_mask
is set.The text was updated successfully, but these errors were encountered: