2022-11-23 10:39:48 +00:00
|
|
|
#include <metal_stdlib>
|
|
|
|
|
|
|
|
using namespace metal;
|
|
|
|
|
|
|
|
struct modf_result {
|
|
|
|
float fract;
|
|
|
|
float whole;
|
|
|
|
};
|
|
|
|
kernel void tint_symbol() {
|
2022-11-23 15:00:20 +00:00
|
|
|
modf_result const tint_symbol_1 = modf_result{.fract=0.25f, .whole=1.0f};
|
2022-11-23 10:39:48 +00:00
|
|
|
float const fract = tint_symbol_1.fract;
|
2022-11-23 15:00:20 +00:00
|
|
|
modf_result const tint_symbol_2 = modf_result{.fract=0.25f, .whole=1.0f};
|
2022-11-23 10:39:48 +00:00
|
|
|
float const whole = tint_symbol_2.whole;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|