dan sinclair | 8f1d276 | 2024-07-31 02:35:40 +0000 | [diff] [blame] | 1 | struct frexp_result_vec3_f32 { |
| 2 | float3 fract; |
| 3 | int3 exp; |
| 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 VertexOutput { |
| 7 | float4 pos; |
| 8 | }; |
| 9 | |
| 10 | struct vertex_main_outputs { |
| 11 | float4 VertexOutput_pos : SV_Position; |
| 12 | }; |
| 13 | |
| 14 | |
| 15 | void frexp_bf45ae() { |
Antonio Maiorano | d032c62 | 2024-09-19 18:20:54 +0000 | [diff] [blame^] | 16 | frexp_result_vec3_f32 res = {(0.5f).xxx, (int(1)).xxx}; |
dan sinclair | 8f1d276 | 2024-07-31 02:35:40 +0000 | [diff] [blame] | 17 | } |
| 18 | |
| 19 | void fragment_main() { |
| 20 | frexp_bf45ae(); |
| 21 | } |
| 22 | |
| 23 | [numthreads(1, 1, 1)] |
| 24 | void compute_main() { |
| 25 | frexp_bf45ae(); |
| 26 | } |
| 27 | |
| 28 | VertexOutput vertex_main_inner() { |
| 29 | VertexOutput tint_symbol = (VertexOutput)0; |
| 30 | tint_symbol.pos = (0.0f).xxxx; |
| 31 | frexp_bf45ae(); |
| 32 | VertexOutput v = tint_symbol; |
| 33 | return v; |
| 34 | } |
| 35 | |
| 36 | vertex_main_outputs vertex_main() { |
| 37 | VertexOutput v_1 = vertex_main_inner(); |
| 38 | vertex_main_outputs v_2 = {v_1.pos}; |
| 39 | return v_2; |
| 40 | } |
| 41 | |