Ben Clayton | 2e376a9 | 2022-10-26 18:47:02 +0000 | [diff] [blame] | 1 | Texture2DArray<float4> arg_1 : register(t1, space1); |
| 2 | SamplerState arg_2 : register(s2, space1); |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 3 | RWByteAddressBuffer prevent_dce : register(u0, space2); |
Ben Clayton | 2e376a9 | 2022-10-26 18:47:02 +0000 | [diff] [blame] | 4 | |
| 5 | void textureGather_831549() { |
Antonio Maiorano | b0dfccd | 2023-08-30 14:49:42 +0000 | [diff] [blame] | 6 | float4 res = arg_1.GatherGreen(arg_2, float3((1.0f).xx, float(1)), int2((1).xx)); |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 7 | prevent_dce.Store4(0u, asuint(res)); |
Ben Clayton | 2e376a9 | 2022-10-26 18:47:02 +0000 | [diff] [blame] | 8 | } |
| 9 | |
| 10 | struct tint_symbol { |
| 11 | float4 value : SV_Position; |
| 12 | }; |
| 13 | |
| 14 | float4 vertex_main_inner() { |
| 15 | textureGather_831549(); |
| 16 | return (0.0f).xxxx; |
| 17 | } |
| 18 | |
| 19 | tint_symbol vertex_main() { |
| 20 | const float4 inner_result = vertex_main_inner(); |
| 21 | tint_symbol wrapper_result = (tint_symbol)0; |
| 22 | wrapper_result.value = inner_result; |
| 23 | return wrapper_result; |
| 24 | } |
| 25 | |
| 26 | void fragment_main() { |
| 27 | textureGather_831549(); |
| 28 | return; |
| 29 | } |
| 30 | |
| 31 | [numthreads(1, 1, 1)] |
| 32 | void compute_main() { |
| 33 | textureGather_831549(); |
| 34 | return; |
| 35 | } |