Files
wgpu/tests/out/glsl/push-constants.vert_main.Vertex.glsl
T
João Capucho 9df243c42c hlsl-out: Add support for push constants (#2005)
Push constants need to be configured by the consumer which must pass the
bind target of the constant buffer used for the push constants.
2022-08-29 11:58:02 +01:00

24 lines
409 B
GLSL

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