dan sinclair | 8f1d276 | 2024-07-31 02:35:40 +0000 | [diff] [blame] | 1 | struct VertexOutput { |
| 2 | float4 pos; |
| 3 | int prevent_dce; |
| 4 | }; |
dan sinclair | 6931379 | 2024-06-13 20:35:21 +0000 | [diff] [blame] | 5 | |
dan sinclair | 8f1d276 | 2024-07-31 02:35:40 +0000 | [diff] [blame] | 6 | struct vertex_main_outputs { |
| 7 | nointerpolation int VertexOutput_prevent_dce : TEXCOORD0; |
| 8 | float4 VertexOutput_pos : SV_Position; |
| 9 | }; |
| 10 | |
| 11 | |
| 12 | RWByteAddressBuffer prevent_dce : register(u0); |
| 13 | int transpose_854336() { |
| 14 | float3x3 res = float3x3((1.0f).xxx, (1.0f).xxx, (1.0f).xxx); |
Antonio Maiorano | d032c62 | 2024-09-19 18:20:54 +0000 | [diff] [blame] | 15 | return (((res[int(0)].x == 0.0f)) ? (int(1)) : (int(0))); |
dan sinclair | 8f1d276 | 2024-07-31 02:35:40 +0000 | [diff] [blame] | 16 | } |
| 17 | |
| 18 | void fragment_main() { |
| 19 | prevent_dce.Store(0u, asuint(transpose_854336())); |
| 20 | } |
| 21 | |
| 22 | [numthreads(1, 1, 1)] |
| 23 | void compute_main() { |
| 24 | prevent_dce.Store(0u, asuint(transpose_854336())); |
| 25 | } |
| 26 | |
| 27 | VertexOutput vertex_main_inner() { |
| 28 | VertexOutput tint_symbol = (VertexOutput)0; |
| 29 | tint_symbol.pos = (0.0f).xxxx; |
| 30 | tint_symbol.prevent_dce = transpose_854336(); |
| 31 | VertexOutput v = tint_symbol; |
| 32 | return v; |
| 33 | } |
| 34 | |
| 35 | vertex_main_outputs vertex_main() { |
| 36 | VertexOutput v_1 = vertex_main_inner(); |
| 37 | VertexOutput v_2 = v_1; |
| 38 | VertexOutput v_3 = v_1; |
| 39 | vertex_main_outputs v_4 = {v_3.prevent_dce, v_2.pos}; |
| 40 | return v_4; |
| 41 | } |
| 42 | |