dan sinclair | 8f1d276 | 2024-07-31 02:35:40 +0000 | [diff] [blame] | 1 | struct VertexOutput { |
| 2 | float4 pos; |
| 3 | int4 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 int4 VertexOutput_prevent_dce : TEXCOORD0; |
| 8 | float4 VertexOutput_pos : SV_Position; |
| 9 | }; |
| 10 | |
| 11 | |
| 12 | RWByteAddressBuffer prevent_dce : register(u0); |
| 13 | Texture2DArray<int4> arg_1 : register(t1, space1); |
| 14 | SamplerState arg_2 : register(s2, space1); |
| 15 | int4 textureGather_445793() { |
| 16 | Texture2DArray<int4> v = arg_1; |
| 17 | SamplerState v_1 = arg_2; |
Antonio Maiorano | d032c62 | 2024-09-19 18:20:54 +0000 | [diff] [blame^] | 18 | int4 res = v.GatherGreen(v_1, float3((1.0f).xx, float(int(1)))); |
dan sinclair | 8f1d276 | 2024-07-31 02:35:40 +0000 | [diff] [blame] | 19 | return res; |
| 20 | } |
| 21 | |
| 22 | void fragment_main() { |
| 23 | prevent_dce.Store4(0u, asuint(textureGather_445793())); |
| 24 | } |
| 25 | |
| 26 | [numthreads(1, 1, 1)] |
| 27 | void compute_main() { |
| 28 | prevent_dce.Store4(0u, asuint(textureGather_445793())); |
| 29 | } |
| 30 | |
| 31 | VertexOutput vertex_main_inner() { |
| 32 | VertexOutput tint_symbol = (VertexOutput)0; |
| 33 | tint_symbol.pos = (0.0f).xxxx; |
| 34 | tint_symbol.prevent_dce = textureGather_445793(); |
| 35 | VertexOutput v_2 = tint_symbol; |
| 36 | return v_2; |
| 37 | } |
| 38 | |
| 39 | vertex_main_outputs vertex_main() { |
| 40 | VertexOutput v_3 = vertex_main_inner(); |
| 41 | VertexOutput v_4 = v_3; |
| 42 | VertexOutput v_5 = v_3; |
| 43 | vertex_main_outputs v_6 = {v_5.prevent_dce, v_4.pos}; |
| 44 | return v_6; |
| 45 | } |
| 46 | |