Method SetEasuConstants
SetEasuConstants(CommandBuffer, Vector2, Vector2, Vector2)
Sets the constant values required by the FSR EASU shader on the provided command buffer
Logic ported from "FsrEasuCon()" in Runtime/PostProcessing/Shaders/ffx/ffx_fsr1.hlsl
Declaration
public static void SetEasuConstants(CommandBuffer cmd, Vector2 inputViewportSizeInPixels, Vector2 inputImageSizeInPixels, Vector2 outputImageSizeInPixels)
Parameters
| Type | Name | Description | 
|---|---|---|
| CommandBuffer | cmd | Command buffer to modify  | 
    
| Vector2 | inputViewportSizeInPixels | This the rendered image resolution being upscaled  | 
    
| Vector2 | inputImageSizeInPixels | This is the resolution of the resource containing the input image (useful for dynamic resolution)  | 
    
| Vector2 | outputImageSizeInPixels | This is the display resolution which the input image gets upscaled to  | 
    
SetEasuConstants(BaseCommandBuffer, Vector2, Vector2, Vector2)
Declaration
public static void SetEasuConstants(BaseCommandBuffer cmd, Vector2 inputViewportSizeInPixels, Vector2 inputImageSizeInPixels, Vector2 outputImageSizeInPixels)
Parameters
| Type | Name | Description | 
|---|---|---|
| BaseCommandBuffer | cmd | |
| Vector2 | inputViewportSizeInPixels | |
| Vector2 | inputImageSizeInPixels | |
| Vector2 | outputImageSizeInPixels |