mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-18 06:30:55 +00:00
Use FP16 in the D3D11 shaders
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
Texture2D theTexture : register(t0);
|
||||
Texture2D<min16float4> theTexture : register(t0);
|
||||
SamplerState theSampler : register(s0);
|
||||
|
||||
struct ShaderInput
|
||||
{
|
||||
float4 pos : SV_POSITION;
|
||||
float2 tex : TEXCOORD0;
|
||||
min16float4 pos : SV_POSITION;
|
||||
min16float2 tex : TEXCOORD0;
|
||||
};
|
||||
|
||||
float4 main(ShaderInput input) : SV_TARGET
|
||||
min16float4 main(ShaderInput input) : SV_TARGET
|
||||
{
|
||||
return theTexture.Sample(theSampler, input.tex);
|
||||
}
|
||||
Reference in New Issue
Block a user