blob: 45c61bb370c5975c58fbee9dec6bb6159d60bcaf [file] [log] [blame]
James Pricebb0496e2021-06-03 09:38:34 +00001struct S {
Ben Clayton165512c2021-06-18 21:15:25 +00002 float f;
3 uint u;
4 float4 v;
James Pricebb0496e2021-06-03 09:38:34 +00005};
James Pricebb0496e2021-06-03 09:38:34 +00006
Ben Clayton5d2f34e2021-06-16 09:19:36 +00007RWByteAddressBuffer output : register(u0, space0);
8
9struct tint_symbol_1 {
10 float f : TEXCOORD0;
James Pricea41694e2021-10-21 23:08:44 +000011 nointerpolation uint u : TEXCOORD1;
Ben Clayton5d2f34e2021-06-16 09:19:36 +000012 float4 v : SV_Position;
13};
14
Ben Clayton883fb632021-07-16 19:47:44 +000015void tint_symbol_2(RWByteAddressBuffer buffer, uint offset, S value) {
Ben Clayton8a96c782021-07-15 20:29:09 +000016 buffer.Store((offset + 0u), asuint(value.f));
17 buffer.Store((offset + 4u), asuint(value.u));
18 buffer.Store4((offset + 128u), asuint(value.v));
19}
20
James Pricea5d73ce2021-08-04 22:15:28 +000021void frag_main_inner(S input) {
James Pricebb0496e2021-06-03 09:38:34 +000022 const float f = input.f;
23 const uint u = input.u;
24 const float4 v = input.v;
Ben Clayton883fb632021-07-16 19:47:44 +000025 tint_symbol_2(output, 0u, input);
James Pricea5d73ce2021-08-04 22:15:28 +000026}
27
28void frag_main(tint_symbol_1 tint_symbol) {
29 const S tint_symbol_6 = {tint_symbol.f, tint_symbol.u, tint_symbol.v};
30 frag_main_inner(tint_symbol_6);
James Pricebb0496e2021-06-03 09:38:34 +000031 return;
32}