cts
cts copied to clipboard
wgsl: validate parsing or storage texture types
For each of the storage textures {texture_storage_1d, texture_storage_2d, texture_storage_2d_array and texture_storage_3d}
- [ ] Missing texel_format fails
texture_storage_1d<write> - [x] Invalid texel_format fails
texture_storage_1d<invalid, write> - [ ] No params fails
texture_storage_1dandtexture_storage_1d<> - [ ] Missing comma fails
texture_storage_1d<rgba32float write> - [ ] Missing
accessparameter fails - [ ] Access parameter of
readfails - [ ] Access parameter of
read_writefails - [x] Invalid access parameter fails
- [ ] Missing opening and closing
<and> - [ ] with embedded comments
texture_storage_1d/* comment*/<\nr32float/* comment */, write\n\n>
https://github.com/gpuweb/cts/blob/main/src/webgpu/shader/validation/types/textures.spec.ts