Debian Codegraph @

third_party/spirv-cross/reference/shaders-msl/comp/udiv.comp

raw
1 #include <metal_stdlib>
2 #include <simd/simd.h>
3
4 using namespace metal;
5
6 struct SSBO2
7 {
8 uint outputs[1];
9 };
10
11 struct SSBO
12 {
13 uint inputs[1];
14 };
15
16 constant uint3 gl_WorkGroupSize [[maybe_unused]] = uint3(1u);
17
18 kernel void main0(device SSBO2& _10 [[buffer(0)]], device SSBO& _23 [[buffer(1)]], uint3 gl_GlobalInvocationID [[thread_position_in_grid]])
19 {
20 _10.outputs[gl_GlobalInvocationID.x] = _23.inputs[gl_GlobalInvocationID.x] / 29u;
21 }
22