mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-12-16 06:12:28 +00:00
738f64c903
We need that extra precision for sampling large textures
13 lines
No EOL
278 B
HLSL
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);
|
|
} |