Files
wgpu/tests/out/hlsl/quad-vert.hlsl
T
Jim Blandy 8b267218a4 Implement module compaction.
Add a new Naga feature, `"compact"`, which adds a new function
`naga::compact::compact`, which removes unused expressions, types, and
constants from a `Module`.
2023-09-20 18:46:33 +02:00

60 lines
1.5 KiB
HLSL

struct gl_PerVertex {
float4 gl_Position : SV_Position;
float gl_PointSize;
float gl_ClipDistance[1];
float gl_CullDistance[1];
int _end_pad_0;
};
struct type_4 {
float2 member : LOC0;
float4 gl_Position : SV_Position;
};
gl_PerVertex Constructgl_PerVertex(float4 arg0, float arg1, float arg2[1], float arg3[1]) {
gl_PerVertex ret = (gl_PerVertex)0;
ret.gl_Position = arg0;
ret.gl_PointSize = arg1;
ret.gl_ClipDistance = arg2;
ret.gl_CullDistance = arg3;
return ret;
}
static float2 v_uv = (float2)0;
static float2 a_uv_1 = (float2)0;
static gl_PerVertex perVertexStruct = Constructgl_PerVertex(float4(0.0, 0.0, 0.0, 1.0), 1.0, (float[1])0, (float[1])0);
static float2 a_pos_1 = (float2)0;
struct VertexOutput_main {
float2 member : LOC0;
float4 gl_Position : SV_Position;
};
void main_1()
{
float2 _expr6 = a_uv_1;
v_uv = _expr6;
float2 _expr7 = a_pos_1;
perVertexStruct.gl_Position = float4(_expr7.x, _expr7.y, 0.0, 1.0);
return;
}
type_4 Constructtype_4(float2 arg0, float4 arg1) {
type_4 ret = (type_4)0;
ret.member = arg0;
ret.gl_Position = arg1;
return ret;
}
VertexOutput_main main(float2 a_uv : LOC1, float2 a_pos : LOC0)
{
a_uv_1 = a_uv;
a_pos_1 = a_pos;
main_1();
float2 _expr7 = v_uv;
float4 _expr8 = perVertexStruct.gl_Position;
const type_4 type_4_ = Constructtype_4(_expr7, _expr8);
const VertexOutput_main type_4_1 = { type_4_.member, type_4_.gl_Position };
return type_4_1;
}