|
|
@ -35,11 +35,6 @@ namespace FidelityFX.FSR3 |
|
|
{ |
|
|
{ |
|
|
private const int MaxQueuedFrames = 16; |
|
|
private const int MaxQueuedFrames = 16; |
|
|
|
|
|
|
|
|
public float VelocityFactor |
|
|
|
|
|
{ |
|
|
|
|
|
set => UpscalerConsts.velocityFactor = Mathf.Clamp01(value); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private Fsr3Upscaler.ContextDescription _contextDescription; |
|
|
private Fsr3Upscaler.ContextDescription _contextDescription; |
|
|
private CommandBuffer _commandBuffer; |
|
|
private CommandBuffer _commandBuffer; |
|
|
|
|
|
|
|
|
@ -413,6 +408,8 @@ namespace FidelityFX.FSR3 |
|
|
constants.frameIndex = 0; |
|
|
constants.frameIndex = 0; |
|
|
else |
|
|
else |
|
|
constants.frameIndex += 1.0f; |
|
|
constants.frameIndex += 1.0f; |
|
|
|
|
|
|
|
|
|
|
|
constants.velocityFactor = dispatchParams.VelocityFactor; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private Vector4 SetupDeviceDepthToViewSpaceDepthParams(Fsr3Upscaler.DispatchDescription dispatchParams) |
|
|
private Vector4 SetupDeviceDepthToViewSpaceDepthParams(Fsr3Upscaler.DispatchDescription dispatchParams) |
|
|
|