Files
wgpu/tests/in/glsl/fma.frag
T
Jasper St. Pierre ba39fd47c3 Output parentheses around dereference (#1348)
Regression from ce676cf130.

We need to output (*d).mx rather than *d.mx, at least according to Tint.
wgsl-in seems to handle *d.mx just fine, which is likely a separate bug.
2021-09-11 23:32:10 -07:00

10 lines
232 B
GLSL

#version 440 core
struct Mat4x3 { vec4 mx; vec4 my; vec4 mz; };
void Fma(inout Mat4x3 d, Mat4x3 m, float s) { d.mx += m.mx * s; d.my += m.my * s; d.mz += m.mz * s; }
out vec4 o_color;
void main() {
o_color.rgba = vec4(1.0);
}