GraphicsDevice
Provides the main entry point for the XeSS module. Use this to interact with XeSS features.
Read time 1 minuteLast updated 4 hours ago
Definition
- Type: Class
- Namespace: UnityEngine.Intel
- Assembly: UnityEngine.IntelXeSSModule
public class GraphicsDevice
Remarks
Before using , ensure that XeSSUnityPlugin is loaded and the device is initialized via GraphicsDevice.CreateGraphicsDevice.
GraphicsDeviceStatic Properties
Property | Description |
|---|---|
| device | Gets the unique instance of the device. |
| version | Gets current version of the device. |
Methods
Method | Description |
|---|---|
| CreateNativeContext | Creates a XeSS context and initializes it for upscaling. |
| DestroyNativeContext | Destroys a XeSS context. |
| ExecuteUpscale | Execute XeSS upscaling with given texture parameters. |
| GetRenderResolutionFromQualityMode | Given quality mode and output resolution, calculates the optimal input resolution. |
| IsFeatureAvailable | Checks if the given XeSS feature is supported on current device. It's recommended to invoke it once and cache the result. |
| SetExposureMultiplier | Sets exposure multiplier for the given context. It applies to all exposure modes: auto exposure, exposure texture, and exposure scale parameter. |
| SetMotionVectorScale | Sets motion vector scaling factor for the given context. Useful when the motion vector texture stores motion vector values in units other than pixels. |
Static Methods
Method | Description |
|---|---|
| CreateGraphicsDevice | Creates a unique device instance. If already exist, the existing instance is re-initialized. |
| GetFeatureVersion | Gets current version of the given XeSS feature. |