|
|
|
@ -60,12 +60,7 @@ namespace FidelityFX.FrameGen |
|
|
|
|
|
|
|
protected void BindCurrentInterpolationSource(CommandBuffer commandBuffer, FrameInterpolation.DispatchDescription dispatchParams) |
|
|
|
{ |
|
|
|
ref var backBuf = ref dispatchParams.currentBackBuffer; |
|
|
|
ref var bbNoHud = ref dispatchParams.currentBackBuffer_HUDLess; |
|
|
|
|
|
|
|
if (bbNoHud.IsValid) |
|
|
|
commandBuffer.SetComputeTextureParam(ComputeShader, KernelIndex, FrameInterpolationShaderIDs.SrvCurrentInterpolationSource, bbNoHud.RenderTarget, bbNoHud.MipLevel, bbNoHud.SubElement); |
|
|
|
else |
|
|
|
ref var backBuf = ref dispatchParams.InterpolationSource; |
|
|
|
commandBuffer.SetComputeTextureParam(ComputeShader, KernelIndex, FrameInterpolationShaderIDs.SrvCurrentInterpolationSource, backBuf.RenderTarget, backBuf.MipLevel, backBuf.SubElement); |
|
|
|
} |
|
|
|
|
|
|
|
|