XeSS-SR SDK API Reference Guide 2.0.2
Loading...
Searching...
No Matches
XeSS API exports

Functions

XESS_API xess_result_t xessGetVersion (xess_version_t *pVersion)
 Gets the XeSS version. This is baked into the XeSS SDK release.
XESS_API xess_result_t xessGetIntelXeFXVersion (xess_context_handle_t hContext, xess_version_t *pVersion)
 Gets the version of the loaded Intel XeFX library. When running on Intel platforms this function will return the version of the loaded Intel XeFX library, for other platforms 0.0.0 will be returned.
XESS_API xess_result_t xessGetProperties (xess_context_handle_t hContext, const xess_2d_t *pOutputResolution, xess_properties_t *pBindingProperties)
 Gets XeSS internal resources properties.
XESS_API xess_result_t xessGetInputResolution (xess_context_handle_t hContext, const xess_2d_t *pOutputResolution, xess_quality_settings_t qualitySettings, xess_2d_t *pInputResolution)
 Get the input resolution for a specified output resolution for a given quality setting. XeSS expects all the input buffers except motion vectors to be in the returned resolution. Motion vectors can be either in output resolution (XESS_INIT_FLAG_HIGH_RES_MV) or returned resolution (default).
XESS_API xess_result_t xessGetOptimalInputResolution (xess_context_handle_t hContext, const xess_2d_t *pOutputResolution, xess_quality_settings_t qualitySettings, xess_2d_t *pInputResolutionOptimal, xess_2d_t *pInputResolutionMin, xess_2d_t *pInputResolutionMax)
 Get the optimal input resolution and possible range for a specified output resolution for a given quality setting. XeSS expects all the input buffers except motion vectors to be in the returned resolution range and all input buffers to be in the same resolution. Motion vectors can be either in output resolution (XESS_INIT_FLAG_HIGH_RES_MV) or in the same resolution as other input buffers (by default).
XESS_API xess_result_t xessGetJitterScale (xess_context_handle_t hContext, float *pX, float *pY)
 Gets jitter scale value.
XESS_API xess_result_t xessGetVelocityScale (xess_context_handle_t hContext, float *pX, float *pY)
 Gets velocity scale value.
XESS_API xess_result_t xessDestroyContext (xess_context_handle_t hContext)
 Destroys the XeSS context. The user must ensure that any pending command lists are completed before destroying the context.
XESS_API xess_result_t xessSetJitterScale (xess_context_handle_t hContext, float x, float y)
 Sets jitter scale value.
XESS_API xess_result_t xessSetVelocityScale (xess_context_handle_t hContext, float x, float y)
 Sets velocity scale value.
XESS_API xess_result_t xessSetExposureMultiplier (xess_context_handle_t hContext, float scale)
 Sets exposure scale value.
XESS_API xess_result_t xessGetExposureMultiplier (xess_context_handle_t hContext, float *pScale)
 Gets exposure scale value.
XESS_API xess_result_t xessSetMaxResponsiveMaskValue (xess_context_handle_t hContext, float value)
 Sets maximum value for responsive mask.
XESS_API xess_result_t xessGetMaxResponsiveMaskValue (xess_context_handle_t hContext, float *pValue)
 Gets maximum value for responsive mask.
XESS_API xess_result_t xessSetLoggingCallback (xess_context_handle_t hContext, xess_logging_level_t loggingLevel, xess_app_log_callback_t loggingCallback)
 Sets logging callback.
XESS_API xess_result_t xessIsOptimalDriver (xess_context_handle_t hContext)
 Indicates if the installed driver supports best XeSS experience.
XESS_API xess_result_t xessForceLegacyScaleFactors (xess_context_handle_t hContext, bool force)
 Forces usage of legacy (pre 1.3.0) scale factors.
XESS_API xess_result_t xessGetPipelineBuildStatus (xess_context_handle_t hContext)
 Returns current state of pipeline build This function can only be called after xess*BuildPipelines and before corresponding xess*Init. This call returns XESS_RESULT_SUCCESS if pipelines already built, and XESS_RESULT_ERROR_OPERATION_IN_PROGRESS if pipline build is in progress. If function called before XeSS API exports*BuildPipelines or after XeSS API exports*Init - XESS_RESULT_ERROR_WRONG_CALL_ORDER will be returned.

Detailed Description

Function Documentation

◆ xessDestroyContext()

XESS_API xess_result_t xessDestroyContext ( xess_context_handle_t hContext)

Destroys the XeSS context. The user must ensure that any pending command lists are completed before destroying the context.

Parameters
hContextThe XeSS context handle.
Returns
XeSS return status code.

◆ xessForceLegacyScaleFactors()

XESS_API xess_result_t xessForceLegacyScaleFactors ( xess_context_handle_t hContext,
bool force )

Forces usage of legacy (pre 1.3.0) scale factors.

Following scale factors will be applied:

  • XESS_QUALITY_SETTING_ULTRA_PERFORMANCE: 3.0
  • XESS_QUALITY_SETTING_PERFORMANCE: 2.0
  • XESS_QUALITY_SETTING_BALANCED: 1.7
  • XESS_QUALITY_SETTING_QUALITY: 1.5
  • XESS_QUALITY_SETTING_ULTRA_QUALITY: 1.3
  • XESS_QUALITY_SETTING_AA: 1.0 In order to apply new scale factors application should call xessGetOptimalInputResolution and initialization function (xess*Init)
Parameters
hContextThe XeSS context handle.
forceif set to true legacy scale factors will be forced, if set to false - scale factors will be selected by XeSS
Returns
XeSS return status code.

◆ xessGetExposureMultiplier()

XESS_API xess_result_t xessGetExposureMultiplier ( xess_context_handle_t hContext,
float * pScale )

Gets exposure scale value.

Parameters
hContextThe XeSS context handle.
[out]pScaleExposure scale pointer.
Returns
XeSS return status code.

◆ xessGetInputResolution()

XESS_API xess_result_t xessGetInputResolution ( xess_context_handle_t hContext,
const xess_2d_t * pOutputResolution,
xess_quality_settings_t qualitySettings,
xess_2d_t * pInputResolution )

Get the input resolution for a specified output resolution for a given quality setting. XeSS expects all the input buffers except motion vectors to be in the returned resolution. Motion vectors can be either in output resolution (XESS_INIT_FLAG_HIGH_RES_MV) or returned resolution (default).

Parameters
hContextThe XeSS context handle.
pOutputResolutionOutput resolution to calculate input resolution for.
qualitySettingsDesired quality setting.
[out]pInputResolutionRequired input resolution.
Returns
XeSS return status code.

◆ xessGetIntelXeFXVersion()

XESS_API xess_result_t xessGetIntelXeFXVersion ( xess_context_handle_t hContext,
xess_version_t * pVersion )

Gets the version of the loaded Intel XeFX library. When running on Intel platforms this function will return the version of the loaded Intel XeFX library, for other platforms 0.0.0 will be returned.

Parameters
hContextThe XeSS context handle.
[out]pVersionReturned Intel XeFX library version.
Returns
XeSS return status code.

◆ xessGetJitterScale()

XESS_API xess_result_t xessGetJitterScale ( xess_context_handle_t hContext,
float * pX,
float * pY )

Gets jitter scale value.

Parameters
hContextThe XeSS context handle.
[out]pXJitter scale pointer for the X axis.
[out]pYJitter scale pointer for the Y axis.
Returns
XeSS return status code.

◆ xessGetMaxResponsiveMaskValue()

XESS_API xess_result_t xessGetMaxResponsiveMaskValue ( xess_context_handle_t hContext,
float * pValue )

Gets maximum value for responsive mask.

Parameters
hContextThe XeSS context handle.
[out]pValuemaximum clip value pointer.
Returns
XeSS return status code.

◆ xessGetOptimalInputResolution()

XESS_API xess_result_t xessGetOptimalInputResolution ( xess_context_handle_t hContext,
const xess_2d_t * pOutputResolution,
xess_quality_settings_t qualitySettings,
xess_2d_t * pInputResolutionOptimal,
xess_2d_t * pInputResolutionMin,
xess_2d_t * pInputResolutionMax )

Get the optimal input resolution and possible range for a specified output resolution for a given quality setting. XeSS expects all the input buffers except motion vectors to be in the returned resolution range and all input buffers to be in the same resolution. Motion vectors can be either in output resolution (XESS_INIT_FLAG_HIGH_RES_MV) or in the same resolution as other input buffers (by default).

Note
Aspect ratio of the input resolution must be the same as for the output resolution.
Parameters
hContextThe XeSS context handle.
pOutputResolutionOutput resolution to calculate input resolution for.
qualitySettingsDesired quality setting.
[out]pInputResolutionOptimalOptimal input resolution.
[out]pInputResolutionMinRequired minimal input resolution.
[out]pInputResolutionMaxRequired maximal input resolution.
Returns
XeSS return status code.

◆ xessGetPipelineBuildStatus()

XESS_API xess_result_t xessGetPipelineBuildStatus ( xess_context_handle_t hContext)

Returns current state of pipeline build This function can only be called after xess*BuildPipelines and before corresponding xess*Init. This call returns XESS_RESULT_SUCCESS if pipelines already built, and XESS_RESULT_ERROR_OPERATION_IN_PROGRESS if pipline build is in progress. If function called before XeSS API exports*BuildPipelines or after XeSS API exports*Init - XESS_RESULT_ERROR_WRONG_CALL_ORDER will be returned.

Parameters
hContextThe XeSS context handle.
Returns
XESS_RESULT_SUCCESS if pipelines already built. XESS_RESULT_ERROR_OPERATION_IN_PROGRESS if pipeline build are in progress. XESS_RESULT_ERROR_WRONG_CALL_ORDER if the function is called out of order.

◆ xessGetProperties()

XESS_API xess_result_t xessGetProperties ( xess_context_handle_t hContext,
const xess_2d_t * pOutputResolution,
xess_properties_t * pBindingProperties )

Gets XeSS internal resources properties.

Parameters
hContextThe XeSS context handle.
pOutputResolutionOutput resolution to calculate properties for.
[out]pBindingPropertiesReturned properties.
Returns
XeSS return status code.

◆ xessGetVelocityScale()

XESS_API xess_result_t xessGetVelocityScale ( xess_context_handle_t hContext,
float * pX,
float * pY )

Gets velocity scale value.

Parameters
hContextThe XeSS context handle.
[out]pXVelocity scale pointer for the X axis.
[out]pYVelocity scale pointer for the Y axis.
Returns
XeSS return status code.

◆ xessGetVersion()

XESS_API xess_result_t xessGetVersion ( xess_version_t * pVersion)

Gets the XeSS version. This is baked into the XeSS SDK release.

Parameters
[out]pVersionReturned XeSS version.
Returns
XeSS return status code.

◆ xessIsOptimalDriver()

XESS_API xess_result_t xessIsOptimalDriver ( xess_context_handle_t hContext)

Indicates if the installed driver supports best XeSS experience.

Parameters
hContextThe XeSS context handle.
Returns
xessIsOptimalDriver returns XESS_RESULT_SUCCESS, or XESS_RESULT_WARNING_OLD_DRIVER if installed driver may result in degraded performance or visual quality.
xessD3D12CreateContext(..) will return XESS_RESULT_ERROR_UNSUPPORTED_DRIVER if driver does not support XeSS at all.

◆ xessSetExposureMultiplier()

XESS_API xess_result_t xessSetExposureMultiplier ( xess_context_handle_t hContext,
float scale )

Sets exposure scale value.

This value will be applied on top of any passed exposure value or automatically calculated exposure.

Parameters
hContextThe XeSS context handle.
scalescale value.
Returns
XeSS return status code.

◆ xessSetJitterScale()

XESS_API xess_result_t xessSetJitterScale ( xess_context_handle_t hContext,
float x,
float y )

Sets jitter scale value.

Parameters
hContextThe XeSS context handle.
xscale for the X axis
yscale for the Y axis
Returns
XeSS return status code.

◆ xessSetLoggingCallback()

XESS_API xess_result_t xessSetLoggingCallback ( xess_context_handle_t hContext,
xess_logging_level_t loggingLevel,
xess_app_log_callback_t loggingCallback )

Sets logging callback.

Parameters
hContextThe XeSS context handle.
loggingLevelMinimum logging level for logging callback.
loggingCallbackLogging callback
Returns
XeSS return status code.

◆ xessSetMaxResponsiveMaskValue()

XESS_API xess_result_t xessSetMaxResponsiveMaskValue ( xess_context_handle_t hContext,
float value )

Sets maximum value for responsive mask.

This value used to clip responsive mask values. Final responsive mask value calculated as clip(responsive_mask, 0.0, max_value). Value must be within range [0.0; 1.0]

Parameters
hContextThe XeSS context handle.
valuemaximum clip value.
Returns
XeSS return status code.

◆ xessSetVelocityScale()

XESS_API xess_result_t xessSetVelocityScale ( xess_context_handle_t hContext,
float x,
float y )

Sets velocity scale value.

Parameters
hContextThe XeSS context handle.
xscale for the X axis
yscale for the Y axis
Returns
XeSS return status code.