|
|
|
@ -33,7 +33,7 @@ namespace FidelityFX |
|
|
|
/// <summary>
|
|
|
|
/// Creates a new FSR3 Upscaler context with standard parameters that are appropriate for the current platform.
|
|
|
|
/// </summary>
|
|
|
|
public static Fsr3UpscalerContext CreateContext(Vector2Int displaySize, Vector2Int maxRenderSize, Fsr3UpscalerShaders shaders, IFsr3UpscalerCallbacks callbacks, InitializationFlags flags = 0) |
|
|
|
public static Fsr3UpscalerContext CreateContext(Vector2Int displaySize, Vector2Int maxRenderSize, Fsr3UpscalerShaders shaders, InitializationFlags flags = 0) |
|
|
|
{ |
|
|
|
if (SystemInfo.usesReversedZBuffer) |
|
|
|
flags |= InitializationFlags.EnableDepthInverted; |
|
|
|
@ -52,7 +52,6 @@ namespace FidelityFX |
|
|
|
DisplaySize = displaySize, |
|
|
|
MaxRenderSize = maxRenderSize, |
|
|
|
Shaders = shaders, |
|
|
|
Callbacks = callbacks, |
|
|
|
}; |
|
|
|
|
|
|
|
var context = new Fsr3UpscalerContext(); |
|
|
|
@ -168,7 +167,6 @@ namespace FidelityFX |
|
|
|
public Vector2Int MaxRenderSize; |
|
|
|
public Vector2Int DisplaySize; |
|
|
|
public Fsr3UpscalerShaders Shaders; |
|
|
|
public IFsr3UpscalerCallbacks Callbacks; |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|