2021-04-06 12:43:34 +00:00
|
|
|
#include <metal_stdlib>
|
|
|
|
#include <simd/simd.h>
|
|
|
|
|
|
|
|
using namespace metal;
|
|
|
|
|
|
|
|
struct V
|
|
|
|
{
|
|
|
|
float4 a;
|
|
|
|
float4 b;
|
|
|
|
float4 c;
|
|
|
|
float4 d;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct main0_out
|
|
|
|
{
|
2022-03-04 16:38:53 +00:00
|
|
|
float4 m_22_b;
|
|
|
|
float4 m_22_c;
|
|
|
|
float4 m_22_d;
|
2021-04-06 12:43:34 +00:00
|
|
|
float4 gl_Position;
|
|
|
|
};
|
|
|
|
|
|
|
|
kernel void main0(uint3 gl_GlobalInvocationID [[thread_position_in_grid]], uint3 spvStageInputSize [[grid_size]], device main0_out* spvOut [[buffer(28)]])
|
|
|
|
{
|
2021-04-07 08:55:40 +00:00
|
|
|
V _22 = {};
|
2021-04-06 12:43:34 +00:00
|
|
|
device main0_out& out = spvOut[gl_GlobalInvocationID.y * spvStageInputSize.x + gl_GlobalInvocationID.x];
|
|
|
|
if (any(gl_GlobalInvocationID >= spvStageInputSize))
|
|
|
|
return;
|
|
|
|
out.gl_Position = float4(1.0);
|
|
|
|
_22.a = float4(2.0);
|
|
|
|
_22.b = float4(3.0);
|
2022-03-04 16:38:53 +00:00
|
|
|
out.m_22_b = _22.b;
|
|
|
|
out.m_22_c = _22.c;
|
|
|
|
out.m_22_d = _22.d;
|
2021-04-06 12:43:34 +00:00
|
|
|
}
|
|
|
|
|