dan sinclair | 8f1d276 | 2024-07-31 02:35:40 +0000 | [diff] [blame] | 1 | struct VertexOutput { |
| 2 | float4 pos; |
| 3 | vector<float16_t, 4> 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 vector<float16_t, 4> VertexOutput_prevent_dce : TEXCOORD0; |
| 8 | float4 VertexOutput_pos : SV_Position; |
| 9 | }; |
| 10 | |
| 11 | |
| 12 | RWByteAddressBuffer prevent_dce : register(u0); |
| 13 | vector<float16_t, 4> sin_5c0712() { |
| 14 | vector<float16_t, 4> arg_0 = (float16_t(1.5703125h)).xxxx; |
| 15 | vector<float16_t, 4> res = sin(arg_0); |
| 16 | return res; |
| 17 | } |
| 18 | |
| 19 | void fragment_main() { |
| 20 | prevent_dce.Store<vector<float16_t, 4> >(0u, sin_5c0712()); |
| 21 | } |
| 22 | |
| 23 | [numthreads(1, 1, 1)] |
| 24 | void compute_main() { |
| 25 | prevent_dce.Store<vector<float16_t, 4> >(0u, sin_5c0712()); |
| 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 = sin_5c0712(); |
| 32 | VertexOutput v = tint_symbol; |
| 33 | return v; |
| 34 | } |
| 35 | |
| 36 | vertex_main_outputs vertex_main() { |
| 37 | VertexOutput v_1 = vertex_main_inner(); |
dan sinclair | 34a2d65 | 2024-10-25 00:30:58 +0000 | [diff] [blame] | 38 | vertex_main_outputs v_2 = {v_1.prevent_dce, v_1.pos}; |
| 39 | return v_2; |
dan sinclair | 8f1d276 | 2024-07-31 02:35:40 +0000 | [diff] [blame] | 40 | } |
| 41 | |