Ben Clayton | da5424b | 2022-10-24 23:58:53 +0000 | [diff] [blame] | 1 | Texture2DArray<uint4> 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 | da5424b | 2022-10-24 23:58:53 +0000 | [diff] [blame] | 4 | |
| 5 | void textureGather_6b7b74() { |
Ben Clayton | 4b60615 | 2022-11-04 17:06:03 +0000 | [diff] [blame] | 6 | float2 arg_3 = (1.0f).xx; |
Ben Clayton | da5424b | 2022-10-24 23:58:53 +0000 | [diff] [blame] | 7 | uint arg_4 = 1u; |
Antonio Maiorano | b0dfccd | 2023-08-30 14:49:42 +0000 | [diff] [blame] | 8 | uint4 res = arg_1.GatherGreen(arg_2, float3(arg_3, float(arg_4)), int2((1).xx)); |
Ben Clayton | 77a90cb | 2023-03-06 18:25:08 +0000 | [diff] [blame] | 9 | prevent_dce.Store4(0u, asuint(res)); |
Ben Clayton | da5424b | 2022-10-24 23:58:53 +0000 | [diff] [blame] | 10 | } |
| 11 | |
| 12 | struct tint_symbol { |
| 13 | float4 value : SV_Position; |
| 14 | }; |
| 15 | |
| 16 | float4 vertex_main_inner() { |
| 17 | textureGather_6b7b74(); |
| 18 | return (0.0f).xxxx; |
| 19 | } |
| 20 | |
| 21 | tint_symbol vertex_main() { |
| 22 | const float4 inner_result = vertex_main_inner(); |
| 23 | tint_symbol wrapper_result = (tint_symbol)0; |
| 24 | wrapper_result.value = inner_result; |
| 25 | return wrapper_result; |
| 26 | } |
| 27 | |
| 28 | void fragment_main() { |
| 29 | textureGather_6b7b74(); |
| 30 | return; |
| 31 | } |
| 32 | |
| 33 | [numthreads(1, 1, 1)] |
| 34 | void compute_main() { |
| 35 | textureGather_6b7b74(); |
| 36 | return; |
| 37 | } |