Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CreateFeature(CommandBuffer, in DLSSCommandInitializationData)

Creates a specific NVIDIA feature.
Read time 1 minuteLast updated 6 days ago

Definition

CreateFeature(CommandBuffer, DLSSCommandInitializationData)

public DLSSContext CreateFeature(CommandBuffer cmd, in DLSSCommandInitializationData initSettings)

Parameters

The rendering command buffer to record commands into. This call does not execute the command buffer, you must execute the command buffer yourself at any time after this call.

Initial settings structure for the specific feature.

Returns

Type

Description

DLSSContextReturns a Deep Learning Super Sampling (DLSS) context object.

Remarks

initSettings
must belong to the feature you want to create. A usual use case is to call this function once per view you want to apply the feature too. For example, if your application uses two screens, call this function for each screen respectively. When the application no longer requires the feature (for example a view is destroyed), the application must call GraphicsDevice.DestroyFeature to recover the allocated memory.