#pragma once /* * Copyright (c) 2021-2024 NVIDIA CORPORATION. All rights reserved. * * NVIDIA Corporation and its licensors retain all intellectual property and proprietary * rights in and to this software, related documentation and any modifications thereto. * Any use, reproduction, disclosure or distribution of this software and related * documentation without an express license agreement from NVIDIA Corporation is strictly * prohibited. * * TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THIS SOFTWARE IS PROVIDED *AS IS* * AND NVIDIA AND ITS SUPPLIERS DISCLAIM ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, * INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A * PARTICULAR PURPOSE. IN NO EVENT SHALL NVIDIA OR ITS SUPPLIERS BE LIABLE FOR ANY * SPECIAL, INCIDENTAL, INDIRECT, OR CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING, WITHOUT * LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF * BUSINESS INFORMATION, OR ANY OTHER PECUNIARY LOSS) ARISING OUT OF THE USE OF OR * INABILITY TO USE THIS SOFTWARE, EVEN IF NVIDIA HAS BEEN ADVISED OF THE POSSIBILITY OF * SUCH DAMAGES. */ #ifndef NVSDK_NGX_DEFS_DLSSG_H #define NVSDK_NGX_DEFS_DLSSG_H #include // for size_t #include // for uint64_t #include "nvsdk_ngx_defs.h" #include "nvsdk_ngx_params.h" typedef enum NVSDK_NGX_DLSSG_ResourceFlags { NVSDK_NGX_DLSSG_ResourceFlags_Backbuffer = 1 << 0, NVSDK_NGX_DLSSG_ResourceFlags_MVecs = 1 << 1, NVSDK_NGX_DLSSG_ResourceFlags_Depth = 1 << 2, NVSDK_NGX_DLSSG_ResourceFlags_HUDLess = 1 << 3, NVSDK_NGX_DLSSG_ResourceFlags_UI = 1 << 4, NVSDK_NGX_DLSSG_ResourceFlags_BidirectionalDistortionField = 1 << 5, NVSDK_NGX_DLSSG_ResourceFlags_Reserved6 = 1 << 6, NVSDK_NGX_DLSSG_ResourceFlags_UIAlpha = 1 << 7, NVSDK_NGX_DLSSG_ResourceFlags_OutputInterpolated = 1 << 24, NVSDK_NGX_DLSSG_ResourceFlags_OutputReal = 1 << 25, NVSDK_NGX_DLSSG_ResourceFlags_OutputDisableInterpolation = 1 << 26, } NVSDK_NGX_DLSSG_ResourceFlags; #define NVSDK_NGX_Parameter_FrameGeneration_Available "FrameGeneration.Available" #define NVSDK_NGX_Parameter_FrameGeneration_FeatureInitResult "FrameGeneration.FeatureInitResult" #define NVSDK_NGX_Parameter_FrameGeneration_MinDriverVersionMajor "FrameGeneration.MinDriverVersionMajor" #define NVSDK_NGX_Parameter_FrameGeneration_MinDriverVersionMinor "FrameGeneration.MinDriverVersionMinor" #define NVSDK_NGX_Parameter_FrameGeneration_NeedsUpdatedDriver "FrameGeneration.NeedsUpdatedDriver" #define NVSDK_NGX_Parameter_FrameInterpolation_Available "FrameInterpolation.Available" #define NVSDK_NGX_Parameter_FrameInterpolation_FeatureInitResult "FrameInterpolation.FeatureInitResult" #define NVSDK_NGX_Parameter_FrameInterpolation_MinDriverVersionMajor "FrameInterpolation.MinDriverVersionMajor" #define NVSDK_NGX_Parameter_FrameInterpolation_MinDriverVersionMinor "FrameInterpolation.MinDriverVersionMinor" #define NVSDK_NGX_Parameter_FrameInterpolation_NeedsUpdatedDriver "FrameInterpolation.NeedsUpdatedDriver" #define NVSDK_NGX_DLSSG_Parameter_BackbufferFormat "DLSSG.BackbufferFormat" // Required Input Textures #define NVSDK_NGX_DLSSG_Parameter_Backbuffer "DLSSG.Backbuffer" #define NVSDK_NGX_DLSSG_Parameter_MVecs "DLSSG.MVecs" #define NVSDK_NGX_DLSSG_Parameter_Depth "DLSSG.Depth" // Optional Input Textures to improve Image Quality (strongly suggested) // NVSDK_NGX_DLSSG_Parameter_BidirectionalDistortionField: Resource describing post-processing distortion effects, // such as lens distortion, that have been applied to the final color. If you use this type of effect, the final // color is no longer aligned with the input depth, motion vectors, and camera information. // The bidirectional distortion field serves as a mapping between the pixels in the distorted color texture // and the undistorted guide buffers. #define NVSDK_NGX_DLSSG_Parameter_BidirectionalDistortionField "DLSSG.BidirectionalDistortionField" // NVSDK_NGX_DLSSG_Parameter_HUDLess: Contains the scene color before any UI or HUD elements // are drawn. Its content for non-UI pixels should be identical to the backbuffer. #define NVSDK_NGX_DLSSG_Parameter_HUDLess "DLSSG.HUDLess" // NVSDK_NGX_DLSSG_Parameter_UI: A four-channel resource containing the color and opacity/alpha of the UI. // The color should be pre-multiplied by the alpha value, such that for each pixel: // backbuffer_color = ui_color + (1 - ui_alpha) * hudless_scene_color #define NVSDK_NGX_DLSSG_Parameter_UI "DLSSG.UI" // NVSDK_NGX_DLSSG_Parameter_UIAlpha: A single channel resource of only the alpha UI values, between 0.0f and 1.0f. #define NVSDK_NGX_DLSSG_Parameter_UIAlpha "DLSSG.UIAlpha" // Note: Only one of NVSDK_NGX_DLSSG_Parameter_UIAlpha or NVSDK_NGX_DLSSG_Parameter_UI need to be provided. // For User Interface Recomposition (UIR) frame generation, both HUDless and one of UI or UIAlpha must be provided. // Additionally set the NVSDK_NGX_DLSSG_Parameter_UserInterfaceRecompositionEnabled parameter to trigger // the create time decisions required for this UIR mode. See that parameter description for more information. // Required Output Texture (same texture format as Backbuffer) #define NVSDK_NGX_DLSSG_Parameter_OutputInterpolated "DLSSG.OutputInterpolated" // Optional Output Texture (gives FG the opportunity to render text or debug info onto the real frame) #define NVSDK_NGX_DLSSG_Parameter_OutputReal "DLSSG.OutputReal" // Legacy names for the output interpolated and real frames. Use the equivalent parameters // NVSDK_NGX_DLSSG_Parameter_OutputInterpolated and NVSDK_NGX_DLSSG_Parameter_OutputReal // instead. #define NVSDK_NGX_Parameter_OutputInterpolated "DLSSG.OutputInterpolated" #define NVSDK_NGX_Parameter_OutputReal "DLSSG.OutputReal" // Create-time resource flag bitmasks (see NVSDK_NGX_DLSSG_ResourceFlags) // denoting resources that the application will always/never provide for the // lifetime of the feature instance. Setting these values may enable memory // optimizations to reduce VRAM. Resources not specified in either mask remain // optional, and may be provided on some frames, but not others. Resources // required by the algorithm (backbuffer, mvecs, depth, and output) are assumed // to be set in AlwaysProvidedFlags and unset in NeverProvidedFlags, regardless // of the actual values #define NVSDK_NGX_DLSSG_Parameter_ResourceAlwaysProvided_Flags "DLSSG.ResourceAlwaysProvidedFlags" #define NVSDK_NGX_DLSSG_Parameter_ResourceNeverProvided_Flags "DLSSG.ResourceNeverProvidedFlags" // DLFG-specific width/height parameters, to avoid name conflicts with other // features. If set in CreateFeature, these parameters will be used instead of // the generic NVSDK_NGX_Parameter{Width,Height} #define NVSDK_NGX_DLSSG_Parameter_Width "DLSSG.Width" #define NVSDK_NGX_DLSSG_Parameter_Height "DLSSG.Height" // Output resource which allows the snippet to hint to the host application that // the interpolated frame(s) should not be shown this frame. This resource must // be created by the application with a minimum size of 4 bytes, and will be filled // by the snippet: if interpolation should be disabled for this frame, boolean true // will be written to the first byte of the buffer. #define NVSDK_NGX_DLSSG_Parameter_OutputDisableInterpolation "DLSSG.OutputDisableInterpolation" // IMPORTANT: All matrices should NOT contain temporal AA jitter offset // Specifies matrix transformation from the camera view to the clip space. // Float4x4 as void* #define NVSDK_NGX_DLSSG_Parameter_CameraViewToClip "DLSSG.CameraViewToClip" // Float4x4 as void* #define NVSDK_NGX_DLSSG_Parameter_ClipToCameraView "DLSSG.ClipToCameraView" // Float4x4 as void* #define NVSDK_NGX_DLSSG_Parameter_ClipToLensClip "DLSSG.ClipToLensClip" // Float4x4 as void* #define NVSDK_NGX_DLSSG_Parameter_ClipToPrevClip "DLSSG.ClipToPrevClip" // Float4x4 as void* #define NVSDK_NGX_DLSSG_Parameter_PrevClipToClip "DLSSG.PrevClipToClip" // Specifies clip space jitter offset #define NVSDK_NGX_DLSSG_Parameter_JitterOffsetX "DLSSG.JitterOffsetX" #define NVSDK_NGX_DLSSG_Parameter_JitterOffsetY "DLSSG.JitterOffsetY" // Specifies scale factors used to normalize motion vectors (so the values are in [-1,1] range) #define NVSDK_NGX_DLSSG_Parameter_MvecScaleX "DLSSG.MvecScaleX" #define NVSDK_NGX_DLSSG_Parameter_MvecScaleY "DLSSG.MvecScaleY" // Specifies camera pinhole offset. #define NVSDK_NGX_DLSSG_Parameter_CameraPinholeOffsetX "DLSSG.CameraPinholeOffsetX" #define NVSDK_NGX_DLSSG_Parameter_CameraPinholeOffsetY "DLSSG.CameraPinholeOffsetY" // Specifies camera position in world space. #define NVSDK_NGX_DLSSG_Parameter_CameraPosX "DLSSG.CameraPosX" #define NVSDK_NGX_DLSSG_Parameter_CameraPosY "DLSSG.CameraPosY" #define NVSDK_NGX_DLSSG_Parameter_CameraPosZ "DLSSG.CameraPosZ" // Specifies camera up vector in world space. #define NVSDK_NGX_DLSSG_Parameter_CameraUpX "DLSSG.CameraUpX" #define NVSDK_NGX_DLSSG_Parameter_CameraUpY "DLSSG.CameraUpY" #define NVSDK_NGX_DLSSG_Parameter_CameraUpZ "DLSSG.CameraUpZ" // Specifies camera right vector in world space. #define NVSDK_NGX_DLSSG_Parameter_CameraRightX "DLSSG.CameraRightX" #define NVSDK_NGX_DLSSG_Parameter_CameraRightY "DLSSG.CameraRightY" #define NVSDK_NGX_DLSSG_Parameter_CameraRightZ "DLSSG.CameraRightZ" // Specifies camera forward vector in world space. #define NVSDK_NGX_DLSSG_Parameter_CameraFwdX "DLSSG.CameraFwdX" #define NVSDK_NGX_DLSSG_Parameter_CameraFwdY "DLSSG.CameraFwdY" #define NVSDK_NGX_DLSSG_Parameter_CameraFwdZ "DLSSG.CameraFwdZ" // Specifies camera near view plane distance. #define NVSDK_NGX_DLSSG_Parameter_CameraNear "DLSSG.CameraNear" // Specifies camera far view plane distance. #define NVSDK_NGX_DLSSG_Parameter_CameraFar "DLSSG.CameraFar" // Specifies camera field of view in radians. #define NVSDK_NGX_DLSSG_Parameter_CameraFOV "DLSSG.CameraFOV" // Specifies camera aspect ratio defined as view space width divided by height. #define NVSDK_NGX_DLSSG_Parameter_CameraAspectRatio "DLSSG.CameraAspectRatio" // Specifies if tagged color buffers are full HDR (rendering to an HDR monitor) or not #define NVSDK_NGX_DLSSG_Parameter_ColorBuffersHDR "DLSSG.ColorBuffersHDR" // Specifies if depth values are inverted (value closer to the camera is higher) or not. #define NVSDK_NGX_DLSSG_Parameter_DepthInverted "DLSSG.DepthInverted" // Specifies if camera motion is included in the MVec buffer. #define NVSDK_NGX_DLSSG_Parameter_CameraMotionIncluded "DLSSG.CameraMotionIncluded" // Specifies if motion vectors include jitter data. // Specifies if previous frame has no connection to the current one (motion vectors are invalid) #define NVSDK_NGX_DLSSG_Parameter_Reset "DLSSG.Reset" // Specifies if Automode overrode the input Reset flag to true. #define NVSDK_NGX_DLSSG_Parameter_AutomodeOverrideReset "DLSSG.AutomodeOverrideReset" // Specifies if application is not currently rendering game frames (paused in menu, playing video cut-scenes) #define NVSDK_NGX_DLSSG_Parameter_NotRenderingGameFrames "DLSSG.NotRenderingGameFrames" // Specifies if orthographic projection is used or not. #define NVSDK_NGX_DLSSG_Parameter_OrthoProjection "DLSSG.OrthoProjection" #define NVSDK_NGX_DLSSG_Parameter_EstimateVRAMCallback "DLSSG.EstimateVRAMCallback" #define NVSDK_NGX_DLSSG_Parameter_InvertXAxis "DLSSG.InvertXAxis" #define NVSDK_NGX_DLSSG_Parameter_InvertYAxis "DLSSG.InvertYAxis" #define NVSDK_NGX_DLSSG_Parameter_UserDebugText "DLSSG.UserDebugText" #define NVSDK_NGX_DLSSG_Parameter_MvecInvalidValue "DLSSG.MvecInvalidValue" #define NVSDK_NGX_DLSSG_Parameter_MvecDilated "DLSSG.MvecDilated" #define NVSDK_NGX_DLSSG_Parameter_MvecJittered "DLSSG.MvecJittered" #define NVSDK_NGX_DLSSG_Parameter_MenuDetectionEnabled "DLSSG.MenuDetectionEnabled" // If true, allow the snippet to create internal resources on a separate thread, to avoid hitches during feature creation (default false) #define NVSDK_NGX_DLSSG_Parameter_AsyncCreateEnabled "DLSSG.AsyncCreateEnabled" // The DLSS Frame Generation algorithm processes all depth in a "linearized" depth space using the below formulation. // // if NVSDK_NGX_DLSSG_Parameter_DepthInverted is false: `lin_depth = 1 / (1 - depth)` // if NVSDK_NGX_DLSSG_Parameter_DepthInverted is true: `lin_depth = 1 / depth` // // This enables the algorithm to reliably threshold and characterize depth interactions. // // The Frame Generation algorithm is tuned such that most game integrations do not need to modify these values. // However, the below parameters provide mechanisms to control the shape of the internal depth processing space. // Typically useful when input raw depth units are compressed into a small dynamic range. The scale modifier // NVSDK_NGX_DLSSG_Parameter_LinearizedDepth_Scale is a good place to start that won't require more changes. // // Note: the input depth texture must be consistent with the input camera transformation matrices, e.g. clip2prevclip. // Optional scalar on the linearized depth before algorithm processing. // // Defaults to 1.0f. A value of 0.1f can help with a compressed input depth range. #define NVSDK_NGX_DLSSG_Parameter_LinearizedDepth_Scale "DLSSG.LinearizedDepth_Scale" // Optional heuristic that defines the z-distance to the depth plane that artificially partitions near from far objects. // DLSS Frame Generation uses this plane to restrict far plane object motion from scattering into near plane objects. // // Defaults to 600.0f. A value of 4000.0f can help with a compressed input depth range. #define NVSDK_NGX_DLSSG_Parameter_LinearizedDepth_NearFarPartition "DLSSG.LinearizedDepth_NearFarPartition" // Optional heuristic that specifies the minimum linearized depth difference between two objects in screen-space. // DLSS Frame Generation uses this heuristic to understand contiguous depth surfaces. // // Defaults to 40.0f. #define NVSDK_NGX_DLSSG_Parameter_MinRelativeLinearDepthObjectSeparation "DLSSG.MinRelativeLinearDepthObjectSeparation" // Texture Subrect Definitions // Subrect definitions for the input backbuffer (NVSDK_NGX_DLSSG_Parameter_Backbuffer) #define NVSDK_NGX_DLSSG_Parameter_InputBackbufferSubrectBaseX "DLSSG.InputBackbufferSubrectBaseX" #define NVSDK_NGX_DLSSG_Parameter_InputBackbufferSubrectBaseY "DLSSG.InputBackbufferSubrectBaseY" #define NVSDK_NGX_DLSSG_Parameter_InputBackbufferSubrectWidth "DLSSG.InputBackbufferSubrectWidth" #define NVSDK_NGX_DLSSG_Parameter_InputBackbufferSubrectHeight "DLSSG.InputBackbufferSubrectHeight" #define NVSDK_NGX_DLSSG_Parameter_MVecsSubrectBaseX "DLSSG.MVecsSubrectBaseX" #define NVSDK_NGX_DLSSG_Parameter_MVecsSubrectBaseY "DLSSG.MVecsSubrectBaseY" #define NVSDK_NGX_DLSSG_Parameter_MVecsSubrectWidth "DLSSG.MVecsSubrectWidth" #define NVSDK_NGX_DLSSG_Parameter_MVecsSubrectHeight "DLSSG.MVecsSubrectHeight" #define NVSDK_NGX_DLSSG_Parameter_DepthSubrectBaseX "DLSSG.DepthSubrectBaseX" #define NVSDK_NGX_DLSSG_Parameter_DepthSubrectBaseY "DLSSG.DepthSubrectBaseY" #define NVSDK_NGX_DLSSG_Parameter_DepthSubrectWidth "DLSSG.DepthSubrectWidth" #define NVSDK_NGX_DLSSG_Parameter_DepthSubrectHeight "DLSSG.DepthSubrectHeight" #define NVSDK_NGX_DLSSG_Parameter_HUDLessSubrectBaseX "DLSSG.HUDLessSubrectBaseX" #define NVSDK_NGX_DLSSG_Parameter_HUDLessSubrectBaseY "DLSSG.HUDLessSubrectBaseY" #define NVSDK_NGX_DLSSG_Parameter_HUDLessSubrectWidth "DLSSG.HUDLessSubrectWidth" #define NVSDK_NGX_DLSSG_Parameter_HUDLessSubrectHeight "DLSSG.HUDLessSubrectHeight" #define NVSDK_NGX_DLSSG_Parameter_UISubrectBaseX "DLSSG.UISubrectBaseX" #define NVSDK_NGX_DLSSG_Parameter_UISubrectBaseY "DLSSG.UISubrectBaseY" #define NVSDK_NGX_DLSSG_Parameter_UISubrectWidth "DLSSG.UISubrectWidth" #define NVSDK_NGX_DLSSG_Parameter_UISubrectHeight "DLSSG.UISubrectHeight" #define NVSDK_NGX_DLSSG_Parameter_UIAlphaSubrectBaseX "DLSSG.UIAlphaSubrectBaseX" #define NVSDK_NGX_DLSSG_Parameter_UIAlphaSubrectBaseY "DLSSG.UIAlphaSubrectBaseY" #define NVSDK_NGX_DLSSG_Parameter_UIAlphaSubrectWidth "DLSSG.UIAlphaSubrectWidth" #define NVSDK_NGX_DLSSG_Parameter_UIAlphaSubrectHeight "DLSSG.UIAlphaSubrectHeight" #define NVSDK_NGX_DLSSG_Parameter_BidirectionalDistortionFieldSubrectBaseX "DLSSG.BidirectionalDistortionFieldSubrectBaseX" #define NVSDK_NGX_DLSSG_Parameter_BidirectionalDistortionFieldSubrectBaseY "DLSSG.BidirectionalDistortionFieldSubrectBaseY" #define NVSDK_NGX_DLSSG_Parameter_BidirectionalDistortionFieldSubrectWidth "DLSSG.BidirectionalDistortionFieldSubrectWidth" #define NVSDK_NGX_DLSSG_Parameter_BidirectionalDistortionFieldSubrectHeight "DLSSG.BidirectionalDistortionFieldSubrectHeight" #define NVSDK_NGX_DLSSG_Parameter_BidirectionalDistortionField_LowPrecision_IsLowPrecision "DLSSG.BidirectionalDistortionFieldLowPrecision.IsLowPrecision" #define NVSDK_NGX_DLSSG_Parameter_BidirectionalDistortionField_LowPrecision_Bias "DLSSG.BidirectionalDistortionFieldLowPrecision.Bias" #define NVSDK_NGX_DLSSG_Parameter_BidirectionalDistortionField_LowPrecision_Scale "DLSSG.BidirectionalDistortionFieldLowPrecision.Scale" #define NVSDK_NGX_DLSSG_Parameter_OutputInterpolatedSubrectBaseX "DLSSG.OutputInterpolatedSubrectBaseX" #define NVSDK_NGX_DLSSG_Parameter_OutputInterpolatedSubrectBaseY "DLSSG.OutputInterpolatedSubrectBaseY" #define NVSDK_NGX_DLSSG_Parameter_OutputInterpolatedSubrectWidth "DLSSG.OutputInterpolatedSubrectWidth" #define NVSDK_NGX_DLSSG_Parameter_OutputInterpolatedSubrectHeight "DLSSG.OutputInterpolatedSubrectHeight" #define NVSDK_NGX_DLSSG_Parameter_OutputRealSubrectBaseX "DLSSG.OutputRealSubrectBaseX" #define NVSDK_NGX_DLSSG_Parameter_OutputRealSubrectBaseY "DLSSG.OutputRealSubrectBaseY" #define NVSDK_NGX_DLSSG_Parameter_OutputRealSubrectWidth "DLSSG.OutputRealSubrectWidth" #define NVSDK_NGX_DLSSG_Parameter_OutputRealSubrectHeight "DLSSG.OutputRealSubrectHeight" // DEPRECATED. Backbuffer subrect definitions. These apply to BOTH the input and // output backbuffer resources (Backbuffer, OutputInterpolated, OutputReal). // // Use InputBackbufferSubrect, OutputInterpolatedSubrect, and OutputRealSubrect // instead. #define NVSDK_NGX_DLSSG_Parameter_BackbufferSubrectBaseX "DLSSG.BackbufferSubrectBaseX" #define NVSDK_NGX_DLSSG_Parameter_BackbufferSubrectBaseY "DLSSG.BackbufferSubrectBaseY" #define NVSDK_NGX_DLSSG_Parameter_BackbufferSubrectWidth "DLSSG.BackbufferSubrectWidth" #define NVSDK_NGX_DLSSG_Parameter_BackbufferSubrectHeight "DLSSG.BackbufferSubrectHeight" // Specifies the internal resolution to be used (mainly for dynamic resolution) #define NVSDK_NGX_DLSSG_Parameter_InternalWidth "DLSSG.InternalWidth" #define NVSDK_NGX_DLSSG_Parameter_InternalHeight "DLSSG.InternalHeight" // If nonzero, we expect to use dynamic resolution (MVec and Depth res will change, possibly per frame) #define NVSDK_NGX_DLSSG_Parameter_DynamicResolution "DLSSG.DynamicResolution" typedef enum NVSDK_NGX_DLSSG_EvalFlags { // The default behaviour for evaluate is to write the interpolated pixels inside of the // backbuffer extent and uninterpolated pixels - outside of the extent. If this flag is // set, then only the inside of the backbuffer extent is updated, the outside of the extent // stays untouched. NVSDK_NGX_DLSSG_EvalFlags_UpdateOnlyInsideExtents = (1 << 0) } NVSDK_NGX_DLSSG_EvalFlags; #define NVSDK_NGX_DLSSG_Parameter_EvalFlags "DLSSG.EvalFlags" typedef enum NVSDK_NGX_DLSSG_FullscreenMode { NVSDK_NGX_DLSSG_FullscreenMode_Windowed = 0, NVSDK_NGX_DLSSG_FullscreenMode_Borderless = 1, NVSDK_NGX_DLSSG_FullscreenMode_Exclusive = 2 } NVSDK_NGX_DLSSG_FullscreenMode; #define NVSDK_NGX_DLSSG_Parameter_FullscreenMode "DLSSG.FullscreenMode" #define NVSDK_NGX_DLSSG_Parameter_TargetFrameRate "DLSSG.TargetFrameRate" // Callback function types typedef NVSDK_NGX_Result(NVSDK_CONV* PFN_NVSDK_NGX_DLSSG_GetCurrentSettingsCallback)(const NVSDK_NGX_Handle* InHandle, NVSDK_NGX_Parameter* InParams); typedef NVSDK_NGX_Result(NVSDK_CONV* PFN_NVSDK_NGX_DLSSG_EstimateVRAMCallback)(uint32_t mvecDepthWidth, uint32_t mvecDepthHeight, uint32_t colorWidth, uint32_t colorHeight, uint32_t colorBufferFormat, uint32_t mvecBufferFormat, uint32_t depthBufferFormat, uint32_t hudLessBufferFormat, uint32_t uiBufferFormat, size_t* estimatedVRAMInBytes); // DLSS 4 // Output Capability Parameters (access via GetDeviceCapabilityParameters) // The maximum number of generated frames supported by the feature (e.g. 3 for 4x) // If 1 or not set, multiframe is not supported #define NVSDK_NGX_DLSSG_Parameter_MultiFrameCountMax "DLSSG.MultiFrameCountMax" // InParameters // uint32_t, Total of Number Frames expected to Interpolate for given Real-Frame Pair. For 4x, this is 3. For 2x, this is 1. #define NVSDK_NGX_DLSSG_Parameter_MultiFrameCount "DLSSG.MultiFrameCount" // uint32_t, Current inner frame index. For 4x, this is 1, 2, and 3. For 2x, this is 1. #define NVSDK_NGX_DLSSG_Parameter_MultiFrameIndex "DLSSG.MultiFrameIndex" // Optional: uint64_t that increments by one for each fully rendered backbuffer frame such that // Current Backbuffer ID == (Previous Backbuffer ID + 1). The number should increment even // if FG is off, for example, when rendering a menu with FG temporarily disabled. #define NVSDK_NGX_DLSSG_Parameter_BackbufferFrameID "DLSSG.BackbufferFrameID" // Create Time Parameter: Specifies if User Interface Recomposition is enabled. // When enabled, the algorithm will generate output frames using the HUDless and UI Color & Alpha textures if present. // Boolean value: 0 (disabled) or 1 (enabled). // The end user can override this with Nvidia App DLSS Override. #define NVSDK_NGX_DLSSG_Parameter_UserInterfaceRecompositionEnabled "DLSSG.UserInterfaceRecompositionEnabled" // Create Time Parameter: Specifies if Lite Candidate Blending is enabled. // When enabled, the algorithm will use a lighter blending mode for generating // the final output. // Boolean value: 0 (disabled) or 1 (enabled). #define NVSDK_NGX_DLSSG_Parameter_LiteCandidateBlendingEnabled "DLSSG.LiteCandidateBlendingEnabled" #endif // NVSDK_NGX_DEFS_DLSSG_H