Antonio Maiorano | 3ffdc9a | 2024-08-14 20:30:30 +0000 | [diff] [blame] | 1 | struct VertexOutput { |
| 2 | float4 pos; |
| 3 | uint4 prevent_dce; |
| 4 | }; |
dan sinclair | 6931379 | 2024-06-13 20:35:21 +0000 | [diff] [blame] | 5 | |
Antonio Maiorano | 3ffdc9a | 2024-08-14 20:30:30 +0000 | [diff] [blame] | 6 | struct vertex_main_outputs { |
| 7 | nointerpolation uint4 VertexOutput_prevent_dce : TEXCOORD0; |
| 8 | float4 VertexOutput_pos : SV_Position; |
| 9 | }; |
| 10 | |
| 11 | |
| 12 | RWByteAddressBuffer prevent_dce : register(u0); |
| 13 | Texture2D<uint4> arg_0 : register(t0, space1); |
| 14 | uint4 textureLoad_050c33() { |
dan sinclair | d42e0e9 | 2024-09-19 21:49:20 +0000 | [diff] [blame] | 15 | uint4 res = uint4(arg_0.Load(int3(int2((int(1)).xx), int(0)))); |
Antonio Maiorano | 3ffdc9a | 2024-08-14 20:30:30 +0000 | [diff] [blame] | 16 | return res; |
| 17 | } |
| 18 | |
| 19 | void fragment_main() { |
| 20 | prevent_dce.Store4(0u, textureLoad_050c33()); |
| 21 | } |
| 22 | |
| 23 | [numthreads(1, 1, 1)] |
| 24 | void compute_main() { |
| 25 | prevent_dce.Store4(0u, textureLoad_050c33()); |
| 26 | } |
| 27 | |
| 28 | VertexOutput vertex_main_inner() { |
| 29 | VertexOutput tint_symbol = (VertexOutput)0; |
| 30 | tint_symbol.pos = (0.0f).xxxx; |
| 31 | tint_symbol.prevent_dce = textureLoad_050c33(); |
dan sinclair | d42e0e9 | 2024-09-19 21:49:20 +0000 | [diff] [blame] | 32 | VertexOutput v = tint_symbol; |
| 33 | return v; |
Antonio Maiorano | 3ffdc9a | 2024-08-14 20:30:30 +0000 | [diff] [blame] | 34 | } |
| 35 | |
| 36 | vertex_main_outputs vertex_main() { |
dan sinclair | d42e0e9 | 2024-09-19 21:49:20 +0000 | [diff] [blame] | 37 | VertexOutput v_1 = vertex_main_inner(); |
| 38 | VertexOutput v_2 = v_1; |
| 39 | VertexOutput v_3 = v_1; |
| 40 | vertex_main_outputs v_4 = {v_3.prevent_dce, v_2.pos}; |
| 41 | return v_4; |
Antonio Maiorano | 3ffdc9a | 2024-08-14 20:30:30 +0000 | [diff] [blame] | 42 | } |
| 43 | |