Only bind the constant buffer once

This commit is contained in:
Cameron Gutman 2022-02-05 14:15:35 -06:00
commit 1942e72474
3 changed files with 9 additions and 12 deletions

View file

@ -17,7 +17,7 @@ struct ShaderInput
min16float4 main(ShaderInput input) : SV_TARGET
{
float y = luminancePlane.Sample(theSampler, input.tex);
float2 uv = chrominancePlane.Sample(theSampler, input.tex);
float2 uv = chrominancePlane.Sample(theSampler, input.tex);
float3 yuv = float3(y, uv);
// Subtract the YUV offset for limited vs full range