SPIRV-Cross/reference/opt/shaders-msl/vert/texture_buffer.texture-buffer-native.msl21.vert
Hans-Kristian Arntzen fc4f39b11f MSL: Support native texture_buffer type, throw error on atomics.
Atomics are not supported on images or texture_buffers in MSL.
Properly throw an error if OpImageTexelPointer is used (since it can
only be used for atomic operations anyways).
2019-04-23 12:21:43 +02:00

18 lines
346 B
GLSL

#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct main0_out
{
float4 gl_Position [[position]];
};
vertex main0_out main0(texture_buffer<float> uSamp [[texture(4)]], texture_buffer<float> uSampo [[texture(5)]])
{
main0_out out = {};
out.gl_Position = uSamp.read(10) + uSampo.read(100);
return out;
}