dan sinclair | 1cc5451 | 2023-11-23 13:31:42 +0000 | [diff] [blame] | 1 | #include <metal_stdlib> |
2 | using namespace metal; | ||||
dan sinclair | f1f381a | 2023-11-22 09:44:15 +0000 | [diff] [blame] | 3 | |
dan sinclair | 1cc5451 | 2023-11-23 13:31:42 +0000 | [diff] [blame] | 4 | float get_f32() { |
5 | return 1.0f; | ||||
6 | } | ||||
James Price | 48be7e8 | 2024-06-19 22:38:07 +0000 | [diff] [blame] | 7 | |
dan sinclair | 1cc5451 | 2023-11-23 13:31:42 +0000 | [diff] [blame] | 8 | void f() { |
9 | float2 v2 = float2(get_f32()); | ||||
10 | float3 v3 = float3(get_f32()); | ||||
11 | float4 v4 = float4(get_f32()); | ||||
12 | } |