third_party/spirv-cross/reference/opt/shaders-msl/asm/frag/op-image-sampled-image.asm.frag
raw| 1 | #include <metal_stdlib> |
| 2 | #include <simd/simd.h> |
| 3 | |
| 4 | using namespace metal; |
| 5 | |
| 6 | struct push_cb |
| 7 | { |
| 8 | float4 cb0[1]; |
| 9 | }; |
| 10 | |
| 11 | struct main0_out |
| 12 | { |
| 13 | float4 o0 [[color(0)]]; |
| 14 | }; |
| 15 | |
| 16 | fragment main0_out main0(constant push_cb& _19 [[buffer(0)]], texture2d<float> t0 [[texture(0)]], sampler dummy_sampler [[sampler(0)]]) |
| 17 | { |
| 18 | main0_out out = {}; |
| 19 | out.o0 = t0.read(uint2(as_type<int2>(_19.cb0[0u].zw)) + uint2(int2(-1, -2)), as_type<int>(0.0)); |
| 20 | return out; |
| 21 | } |
| 22 |