third_party/spirv-cross/reference/opt/shaders-msl/comp/mat3.comp
raw| 1 | #include <metal_stdlib> |
| 2 | #include <simd/simd.h> |
| 3 | |
| 4 | using namespace metal; |
| 5 | |
| 6 | struct SSBO2 |
| 7 | { |
| 8 | float3x3 out_data[1]; |
| 9 | }; |
| 10 | |
| 11 | constant uint3 gl_WorkGroupSize [[maybe_unused]] = uint3(1u); |
| 12 | |
| 13 | kernel void main0(device SSBO2& _22 [[buffer(0)]], uint3 gl_GlobalInvocationID [[thread_position_in_grid]]) |
| 14 | { |
| 15 | _22.out_data[gl_GlobalInvocationID.x] = float3x3(float3(10.0), float3(20.0), float3(40.0)); |
| 16 | } |
| 17 |