fc4f39b11f
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).
18 lines
346 B
GLSL
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;
|
|
}
|
|
|