Debian Codegraph @

third_party/spirv-cross/reference/opt/shaders-msl/comp/coherent-image.comp

raw
1 #include <metal_stdlib>
2 #include <simd/simd.h>
3
4 using namespace metal;
5
6 struct SSBO
7 {
8 int4 value;
9 };
10
11 constant uint3 gl_WorkGroupSize [[maybe_unused]] = uint3(1u);
12
13 kernel void main0(volatile device SSBO& _10 [[buffer(0)]], texture2d<int> uImage [[texture(0)]])
14 {
15 _10.value = uImage.read(uint2(int2(10)));
16 }
17