wgpu needs vertex buffers and shaders to match #7568
Labels
area: validation
Issues related to validation, diagnostics, and error handling
type: bug
Something isn't working
Description
I recently ran into this error when trying to enable a WebGPU application in Firefox:
The WebGPU spec does not require that the input vertex buffer matches component count with the buffer, only that the type (float, uint, sint) matches. When the component count doesn't match, the implementation should fill in the remaining component values with (0, 0, 0, 1); see the Vertex Processing section of the WebGPU spec. https://gpuweb.github.io/gpuweb/#vertex-processing
Repro steps
The original example is found here: https://noclip.website/#oot3d/spot04 ; this works fine in Chrome.
A CTS test is also found here:
https://gpuweb.github.io/cts/standalone/?q=webgpu:api,operation,vertex_state,correctness:vertex_format_to_shader_format_conversion:*
Platform
This was tested on Windows 10 with Firefox 139.0a1.
The text was updated successfully, but these errors were encountered: