cts icon indicating copy to clipboard operation
cts copied to clipboard

wgsl: validate all arithmetic operations fail if one of the types is an atomic.

Open dj2 opened this issue 3 years ago • 1 comments

The only valid operations on atomics are the builtins. Validate all of the arithmetic operations fail if one of the types is an atomic.

https://www.w3.org/TR/WGSL/#atomic-types

dj2 avatar May 30 '22 19:05 dj2

Add is tested in https://github.com/gpuweb/cts/blob/main/src/webgpu/shader/validation/types/atomics.spec.ts others should probably be tested as well.

dj2 avatar Apr 23 '24 20:04 dj2