SPIRV-Cross/reference/shaders-msl/vert/texture_buffer.texture-buffer-native.msl21.vert
2019-09-24 14:35:25 -04:00

18 lines
358 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(0)]], texture_buffer<float> uSampo [[texture(1)]])
{
main0_out out = {};
out.gl_Position = uSamp.read(uint(10)) + uSampo.read(uint(100));
return out;
}