| #include <metal_stdlib> | |
| using namespace metal; | |
| struct Immediate_packed_vec3 { | |
| /* 0x0000 */ packed_float3 color; | |
| /* 0x000c */ uint count; | |
| }; | |
| struct tint_immediate_data_struct_packed_vec3 { | |
| /* 0x0000 */ Immediate_packed_vec3 user_immediate_data; | |
| /* 0x0010 */ uint tint_non_constant_zero; | |
| /* 0x0014 */ array<int8_t, 12> tint_pad; | |
| }; | |
| struct tint_module_vars_struct { | |
| device float4* output; | |
| const constant tint_immediate_data_struct_packed_vec3* tint_immediate_data; | |
| }; | |
| [[max_total_threads_per_threadgroup(1)]] | |
| kernel void v(device float4* output [[buffer(0)]], const constant tint_immediate_data_struct_packed_vec3* tint_immediate_data [[buffer(30)]]) { | |
| tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.output=output, .tint_immediate_data=tint_immediate_data}; | |
| float3 const v_1 = float3((*tint_module_vars.tint_immediate_data).user_immediate_data.color); | |
| (*tint_module_vars.output) = float4(v_1, float((*tint_module_vars.tint_immediate_data).user_immediate_data.count)); | |
| } |