Documentation

Unity Engine

Download Unity

Unity Engine

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

public class GraphicsDevice

Remarks

Before using
GraphicsDevice
, ensure that XeSSUnityPlugin is loaded and the device is initialized via GraphicsDevice.CreateGraphicsDevice.

Static Properties

Property

Description

deviceGets the unique instance of the device.
versionGets current version of the device.

Methods

Method

Description

CreateNativeContextCreates a XeSS context and initializes it for upscaling.
DestroyNativeContextDestroys a XeSS context.
ExecuteUpscaleExecute XeSS upscaling with given texture parameters.
GetRenderResolutionFromQualityModeGiven quality mode and output resolution, calculates the optimal input resolution.
IsFeatureAvailableChecks if the given XeSS feature is supported on current device. It's recommended to invoke it once and cache the result.
SetExposureMultiplierSets exposure multiplier for the given context. It applies to all exposure modes: auto exposure, exposure texture, and exposure scale parameter.
SetMotionVectorScaleSets 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

CreateGraphicsDeviceCreates a unique device instance. If already exist, the existing instance is re-initialized.
GetFeatureVersionGets current version of the given XeSS feature.