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