blob: ee8118cd77607ff9fc904c10207e5b03f9a2d900 [file] [log] [blame]
Ben Claytond1232672021-05-18 09:24:18 +00001struct tint_symbol_1 {
James Pricea7a23ea2021-06-02 20:53:14 +00002 uint VertexIndex : SV_VertexID;
Ben Claytond1232672021-05-18 09:24:18 +00003};
4struct tint_symbol_2 {
5 float4 value : SV_Position;
6};
Ben Claytond1232672021-05-18 09:24:18 +00007
James Pricea5d73ce2021-08-04 22:15:28 +00008float4 vtx_main_inner(uint VertexIndex) {
Ben Claytonc64ca232022-06-29 00:55:36 +00009 const float2 tint_symbol_4[3] = {float2(0.0f, 0.5f), (-0.5f).xx, float2(0.5f, -0.5f)};
10 return float4(tint_symbol_4[VertexIndex], 0.0f, 1.0f);
James Pricea5d73ce2021-08-04 22:15:28 +000011}
12
13tint_symbol_2 vtx_main(tint_symbol_1 tint_symbol) {
14 const float4 inner_result = vtx_main_inner(tint_symbol.VertexIndex);
15 tint_symbol_2 wrapper_result = (tint_symbol_2)0;
16 wrapper_result.value = inner_result;
17 return wrapper_result;
Ben Claytond1232672021-05-18 09:24:18 +000018}
19
Ben Clayton5d2f34e2021-06-16 09:19:36 +000020struct tint_symbol_3 {
21 float4 value : SV_Target0;
22};
23
James Pricea5d73ce2021-08-04 22:15:28 +000024float4 frag_main_inner() {
25 return float4(1.0f, 0.0f, 0.0f, 1.0f);
26}
27
Ben Claytond1232672021-05-18 09:24:18 +000028tint_symbol_3 frag_main() {
James Pricea5d73ce2021-08-04 22:15:28 +000029 const float4 inner_result_1 = frag_main_inner();
30 tint_symbol_3 wrapper_result_1 = (tint_symbol_3)0;
31 wrapper_result_1.value = inner_result_1;
32 return wrapper_result_1;
Ben Claytond1232672021-05-18 09:24:18 +000033}