You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
eg. the default value for the type field of Buffer.BindingLayout should be uniform, according to the WebGPU spec.
The undefined buffer type should only be used in the default value of the buffer on BindGroupLayout.Entry, in order to show that those fields are empty.
The default values of the structs themselves should match WebGPU spec, so that if someone tries to use the defaults they get the expected behaviour instead of a confusing validation error :)
The text was updated successfully, but these errors were encountered:
Are Dawn's defaults not simply the zero-values? Zero-values are ofc the "default" in a C API, but a Zig API shouldn't necessarily mirror that.
I'd argue it's much better to use the WebGPU spec's defaults, as those are more carefully considered and thus make more sense.
I guess that'd turn this into a feature request rather than a bug :)
slimsag
changed the title
gpu: Default values of BindingLayout structs don't match WebGPU spec
sysgpu: provide clear default values instead of WebGPU 'undefined' default values
Mar 6, 2024
eg. the default value for the
type
field ofBuffer.BindingLayout
should beuniform
, according to the WebGPU spec.The
undefined
buffer type should only be used in the default value of thebuffer
onBindGroupLayout.Entry
, in order to show that those fields are empty.The default values of the structs themselves should match WebGPU spec, so that if someone tries to use the defaults they get the expected behaviour instead of a confusing validation error :)
The text was updated successfully, but these errors were encountered: