16 lines
287 B
Plaintext
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);
|
|
}
|