Vertex-pulling transform generates invalid metal code in certain cases #7410
Labels
area: correctness
We're behaving incorrectly
area: naga back-end
Outputs of naga shader conversion
backend: metal
Issues with Metal
lang: Metal
Metal Shading Language
type: bug
Something isn't working
This is from one of the demos in https://bugzilla.mozilla.org/show_bug.cgi?id=1866068. The render pipeline descriptor defines an input with format
float32x3
, but the shader consumes it as avec2f
. The naga-generated metal shader is invalid because it attempts to cast thevec3f
return value fromunpackFloat32x3
(a helper function generated by the vertex-pulling transform) into avec2f
based on the declared type oftexcoord
in the shader:Test case: 7410.tar.gz
The text was updated successfully, but these errors were encountered: