wgpu/naga/tests/out/hlsl/wgsl-6438-conflicting-idents.hlsl
2025-04-03 15:08:23 +00:00

26 lines
669 B
HLSL

struct OurVertexShaderOutput {
float4 position : SV_Position;
float2 texcoord : LOC0;
};
struct VertexOutput_vs {
float2 texcoord : LOC0;
float4 position : SV_Position;
};
VertexOutput_vs vs(float2 xy : LOC0)
{
OurVertexShaderOutput vsOutput = (OurVertexShaderOutput)0;
vsOutput.position = float4(xy, 0.0, 1.0);
OurVertexShaderOutput _e6 = vsOutput;
const OurVertexShaderOutput ourvertexshaderoutput = _e6;
const VertexOutput_vs ourvertexshaderoutput_1 = { ourvertexshaderoutput.texcoord, ourvertexshaderoutput.position };
return ourvertexshaderoutput_1;
}
float4 fs() : SV_Target0
{
return float4(1.0, 0.0, 0.0, 1.0);
}