SPIRV-Cross/reference/shaders-msl/asm/frag/texel-fetch-no-lod.asm.frag
2019-09-24 14:35:25 -04:00

18 lines
382 B
GLSL

#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct main0_out
{
float4 FragColor [[color(0)]];
};
fragment main0_out main0(texture2d<float> uTexture [[texture(0)]], sampler uTextureSmplr [[sampler(0)]], float4 gl_FragCoord [[position]])
{
main0_out out = {};
out.FragColor = uTexture.read(uint2(int2(gl_FragCoord.xy)), 0);
return out;
}