rt64/examples/shaders/RenderInterfaceTestPostPS.hlsl
David Chavez 61aa08f517
Add Metal Support (#9)
Co-authored-by: Isaac Marovitz <isaacryu@icloud.com>
Co-authored-by: tanmaysachan <tnmysachan@gmail.com>
Co-authored-by: Dario <dariosamo@gmail.com>
2025-03-11 06:15:21 +01:00

11 lines
277 B
HLSL

//
// RT64
//
Texture2D<float4> gTexture : register(t1);
SamplerState gSampler : register(s2);
float4 PSMain(in float4 pos : SV_Position, in float2 uv : TEXCOORD0) : SV_TARGET {
float4 result = float4(gTexture.SampleLevel(gSampler, uv, 0).rgb, 1.0f);
return result;
}