third_party/spirv-cross/reference/shaders-msl/vert/texture_buffer.texture-buffer-native.msl21.vert
raw| 1 | #include <metal_stdlib> |
| 2 | #include <simd/simd.h> |
| 3 | |
| 4 | using namespace metal; |
| 5 | |
| 6 | struct main0_out |
| 7 | { |
| 8 | float4 gl_Position [[position]]; |
| 9 | }; |
| 10 | |
| 11 | vertex main0_out main0(texture_buffer<float> uSamp [[texture(0)]], texture_buffer<float> uSampo [[texture(1)]]) |
| 12 | { |
| 13 | main0_out out = {}; |
| 14 | out.gl_Position = uSamp.read(uint(10)) + uSampo.read(uint(100)); |
| 15 | return out; |
| 16 | } |
| 17 |