mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
18 lines
No EOL
379 B
Metal
18 lines
No EOL
379 B
Metal
#include <metal_stdlib>
|
|
using namespace metal;
|
|
|
|
struct PS_INPUT
|
|
{
|
|
float4 pos [[ position ]];
|
|
float4 col;
|
|
float2 uv;
|
|
};
|
|
|
|
fragment float4 FS(
|
|
PS_INPUT input [[ stage_in ]],
|
|
texture2d<float> FontTexture [[ texture(0) ]],
|
|
sampler FontSampler [[ sampler(0) ]])
|
|
{
|
|
float4 out_col = input.col * FontTexture.sample(FontSampler, input.uv);
|
|
return out_col;
|
|
} |