Ben Clayton | 2e376a9 | 2022-10-26 18:47:02 +0000 | [diff] [blame] | 1 | TextureCubeArray<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_d98d59() { |
Ben Clayton | 4b60615 | 2022-11-04 17:06:03 +0000 | [diff] [blame] | 6 | float4 res = arg_1.GatherGreen(arg_2, float4((1.0f).xxx, float(1))); |
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_d98d59(); |
| 16 | return (0.0f).xxxx; |
| 17 | } |
| 18 | |
| 19 | tint_symbol vertex_main() { |
Antonio Maiorano | 144ebed | 2024-01-30 16:30:15 +0000 | [diff] [blame] | 20 | float4 inner_result = vertex_main_inner(); |
Ben Clayton | 2e376a9 | 2022-10-26 18:47:02 +0000 | [diff] [blame] | 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_d98d59(); |
| 28 | return; |
| 29 | } |
| 30 | |
| 31 | [numthreads(1, 1, 1)] |
| 32 | void compute_main() { |
| 33 | textureGather_d98d59(); |
| 34 | return; |
| 35 | } |