wgpu/naga/tests/out/glsl/push-constants.vert_main.Vertex.glsl
Connor Fitzgerald 1df98d9888
Test And Normalize Vertex Behavior on All Backends (#4723)
Co-authored-by: teoxoy <28601907+teoxoy@users.noreply.github.com>
2023-11-21 22:11:24 +00:00

27 lines
569 B
GLSL

#version 320 es
precision highp float;
precision highp int;
uniform uint naga_vs_first_instance;
struct PushConstants {
float multiplier;
};
struct FragmentIn {
vec4 color;
};
uniform PushConstants _push_constant_binding_vs;
layout(location = 0) in vec2 _p2vs_location0;
void main() {
vec2 pos = _p2vs_location0;
uint ii = (uint(gl_InstanceID) + naga_vs_first_instance);
uint vi = uint(gl_VertexID);
float _e8 = _push_constant_binding_vs.multiplier;
gl_Position = vec4((((float(ii) * float(vi)) * _e8) * pos), 0.0, 1.0);
return;
}