mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 14:31:08 +01:00
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.
10 lines
232 B
GLSL
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);
|
|
}
|