James Price | a6287df | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 1 | RWTexture2DArray<uint4> arg_0 : register(u0, space1); |
| 2 | RWByteAddressBuffer prevent_dce : register(u0, space2); |
James Price | d90c72b | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 3 | |
James Price | a6287df | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 4 | void textureLoad_cdccd2() { |
Jiawei Shao | a54554a | 2023-11-13 08:24:12 +0000 | [diff] [blame] | 5 | uint4 res = arg_0.Load(int3((1).xx, int(1u))); |
James Price | a6287df | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 6 | prevent_dce.Store4(0u, asuint(res)); |
James Price | d90c72b | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 7 | } |
| 8 | |
James Price | a6287df | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 9 | struct tint_symbol { |
| 10 | float4 value : SV_Position; |
| 11 | }; |
James Price | d90c72b | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 12 | |
James Price | a6287df | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 13 | float4 vertex_main_inner() { |
James Price | d90c72b | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 14 | textureLoad_cdccd2(); |
James Price | a6287df | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 15 | return (0.0f).xxxx; |
James Price | d90c72b | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 16 | } |
| 17 | |
James Price | a6287df | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 18 | tint_symbol vertex_main() { |
Antonio Maiorano | 144ebed | 2024-01-30 16:30:15 +0000 | [diff] [blame] | 19 | float4 inner_result = vertex_main_inner(); |
James Price | a6287df | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 20 | tint_symbol wrapper_result = (tint_symbol)0; |
| 21 | wrapper_result.value = inner_result; |
| 22 | return wrapper_result; |
| 23 | } |
| 24 | |
| 25 | void fragment_main() { |
James Price | d90c72b | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 26 | textureLoad_cdccd2(); |
James Price | a6287df | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 27 | return; |
James Price | d90c72b | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 28 | } |
| 29 | |
James Price | a6287df | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 30 | [numthreads(1, 1, 1)] |
| 31 | void compute_main() { |
James Price | d90c72b | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 32 | textureLoad_cdccd2(); |
James Price | a6287df | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 33 | return; |
James Price | d90c72b | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 34 | } |