moonlight-qt/app/shaders/d3d11_overlay_pixel.hlsl
Cameron Gutman 738f64c903 Use FP32 for position and texcoords
We need that extra precision for sampling large textures
2022-02-13 13:41:39 -06:00

13 lines
No EOL
278 B
HLSL

Texture2D<min16float4> theTexture : register(t0);
SamplerState theSampler : register(s0);
struct ShaderInput
{
float4 pos : SV_POSITION;
float2 tex : TEXCOORD0;
};
min16float4 main(ShaderInput input) : SV_TARGET
{
return theTexture.Sample(theSampler, input.tex);
}