mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-25 17:01:15 +01:00
49 lines
1.1 KiB
GLSL
49 lines
1.1 KiB
GLSL
#version 310 es
|
|
|
|
precision highp float;
|
|
|
|
struct type10 {
|
|
vec2 member;
|
|
vec4 gen_gl_Position1;
|
|
float gen_gl_PointSize1;
|
|
float gen_gl_ClipDistance1[1];
|
|
float gen_gl_CullDistance1[1];
|
|
};
|
|
|
|
vec2 v_uv = vec2(0, 0);
|
|
|
|
vec2 a_uv = vec2(0, 0);
|
|
|
|
struct gen_gl_PerVertex_block_0 {
|
|
vec4 gen_gl_Position;
|
|
float gen_gl_PointSize;
|
|
float gen_gl_ClipDistance[1];
|
|
float gen_gl_CullDistance[1];
|
|
} perVertexStruct;
|
|
|
|
vec2 a_pos = vec2(0, 0);
|
|
|
|
layout(location = 1) in vec2 _p2vs_location1;
|
|
layout(location = 0) in vec2 _p2vs_location0;
|
|
smooth layout(location = 0) out vec2 _vs2fs_location0;
|
|
|
|
void main1() {
|
|
v_uv = a_uv;
|
|
vec2 _expr13 = a_pos;
|
|
perVertexStruct.gen_gl_Position = vec4(_expr13.x, _expr13.y, 0.0, 1.0);
|
|
return;
|
|
}
|
|
|
|
void main() {
|
|
vec2 a_uv1 = _p2vs_location1;
|
|
vec2 a_pos1 = _p2vs_location0;
|
|
a_uv = a_uv1;
|
|
a_pos = a_pos1;
|
|
main1();
|
|
type10 _tmp_return = type10(v_uv, perVertexStruct.gen_gl_Position, perVertexStruct.gen_gl_PointSize, perVertexStruct.gen_gl_ClipDistance, perVertexStruct.gen_gl_CullDistance);
|
|
_vs2fs_location0 = _tmp_return.member;
|
|
gl_Position = _tmp_return.gen_gl_Position1;
|
|
return;
|
|
}
|
|
|