17 lines
318 B
Plaintext
17 lines
318 B
Plaintext
#include <metal_stdlib>
|
|
|
|
using namespace metal;
|
|
half get_f16() {
|
|
return 1.0h;
|
|
}
|
|
|
|
void f() {
|
|
half const tint_symbol = get_f16();
|
|
half2 v2 = half2(tint_symbol);
|
|
half const tint_symbol_1 = get_f16();
|
|
half3 v3 = half3(tint_symbol_1);
|
|
half const tint_symbol_2 = get_f16();
|
|
half4 v4 = half4(tint_symbol_2);
|
|
}
|
|
|