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