third_party/spirv-cross/reference/opt/shaders-msl/comp/argument-buffers-image-load-store.ios.msl2.argument.comp
raw| 1 | #include <metal_stdlib> |
| 2 | #include <simd/simd.h> |
| 3 | |
| 4 | using namespace metal; |
| 5 | |
| 6 | kernel void main0(texture2d<float, access::write> uImage [[texture(0)]], texture2d<float> uImageRead [[texture(1)]], uint3 gl_GlobalInvocationID [[thread_position_in_grid]]) |
| 7 | { |
| 8 | int2 _17 = int2(gl_GlobalInvocationID.xy); |
| 9 | uImage.write(uImageRead.read(uint2(_17)), uint2(_17)); |
| 10 | } |
| 11 |