Files
prosperon/shaders/msl/blit.frag.msl
2025-12-22 16:21:21 -06:00

16 lines
287 B
Plaintext

#include <metal_stdlib>
using namespace metal;
struct FragmentIn {
float4 position [[position]];
float2 uv;
};
fragment float4 fragment_main(
FragmentIn in [[stage_in]],
texture2d<float> tex [[texture(0)]],
sampler samp [[sampler(0)]]
) {
return tex.sample(samp, in.uv);
}