pathfinder/resources/shaders/metal/d3d9/tile_copy.fs.metal

20 lines
544 B
Metal
Raw Permalink Normal View History

// Automatically generated from files in pathfinder/shaders/. Do not edit!
#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct main0_out
{
float4 oFragColor [[color(0)]];
};
fragment main0_out main0(constant float2& uFramebufferSize [[buffer(0)]], texture2d<float> uSrc [[texture(0)]], sampler uSrcSmplr [[sampler(0)]], float4 gl_FragCoord [[position]])
{
main0_out out = {};
float2 texCoord = gl_FragCoord.xy / uFramebufferSize;
out.oFragColor = uSrc.sample(uSrcSmplr, texCoord);
return out;
}