dan sinclair | 808942c | 2024-08-06 20:11:45 +0000 | [diff] [blame] | 1 | struct VertexOutput { |
| 2 | float4 pos; |
| 3 | float4 prevent_dce; |
| 4 | }; |
dan sinclair | 6931379 | 2024-06-13 20:35:21 +0000 | [diff] [blame] | 5 | |
dan sinclair | 808942c | 2024-08-06 20:11:45 +0000 | [diff] [blame] | 6 | struct vertex_main_outputs { |
| 7 | nointerpolation float4 VertexOutput_prevent_dce : TEXCOORD0; |
| 8 | float4 VertexOutput_pos : SV_Position; |
| 9 | }; |
| 10 | |
| 11 | |
| 12 | RWByteAddressBuffer prevent_dce : register(u0); |
| 13 | Texture3D<float4> arg_0 : register(t0, space1); |
| 14 | SamplerState arg_1 : register(s1, space1); |
| 15 | float4 textureSampleGrad_21402b() { |
| 16 | float4 res = arg_0.SampleGrad(arg_1, (1.0f).xxx, (1.0f).xxx, (1.0f).xxx); |
| 17 | return res; |
| 18 | } |
| 19 | |
| 20 | void fragment_main() { |
| 21 | prevent_dce.Store4(0u, asuint(textureSampleGrad_21402b())); |
| 22 | } |
| 23 | |
| 24 | [numthreads(1, 1, 1)] |
| 25 | void compute_main() { |
| 26 | prevent_dce.Store4(0u, asuint(textureSampleGrad_21402b())); |
| 27 | } |
| 28 | |
| 29 | VertexOutput vertex_main_inner() { |
| 30 | VertexOutput tint_symbol = (VertexOutput)0; |
| 31 | tint_symbol.pos = (0.0f).xxxx; |
| 32 | tint_symbol.prevent_dce = textureSampleGrad_21402b(); |
| 33 | VertexOutput v = tint_symbol; |
| 34 | return v; |
| 35 | } |
| 36 | |
| 37 | vertex_main_outputs vertex_main() { |
| 38 | VertexOutput v_1 = vertex_main_inner(); |
| 39 | VertexOutput v_2 = v_1; |
| 40 | VertexOutput v_3 = v_1; |
| 41 | vertex_main_outputs v_4 = {v_3.prevent_dce, v_2.pos}; |
| 42 | return v_4; |
| 43 | } |
| 44 | |