Use FP16 in the D3D11 shaders

This commit is contained in:
Cameron Gutman
2022-02-08 21:43:25 -06:00
parent b96cb1abaf
commit b21131a466
6 changed files with 18 additions and 19 deletions
+4 -4
View File
@@ -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);
}