James Price | a6287df | 2023-08-11 00:45:54 +0000 | [diff] [blame] | 1 | RWTexture3D<int4> 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_20eaad() { |
| 5 | uint3 tint_tmp; |
| 6 | arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); |
| 7 | uint3 res = tint_tmp; |
| 8 | prevent_dce.Store3(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_20eaad(); |
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() { |
| 21 | const float4 inner_result = vertex_main_inner(); |
| 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_20eaad(); |
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_20eaad(); |
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 | } |