Files
sbox-public/engine/Definitions/engine/renderdevicemanager.def
Matt Stevens 209c921fd3 Add Nvidia DLSS alongside FSR3
Uses vulkan-native NGX integration instead of Streamline.

Also fixes a pre-existing bug where the temporal upscaler wasn't recreated on
display-resolution change.
2026-07-27 01:34:55 -07:00

22 lines
767 B
Modula-2

include "sbox/glue_renderdevice.h"
native struct DisplayMode_t is Sandbox.Engine.Settings.RenderSettings.VideoDisplayMode;
native static class Glue.RenderDeviceManager as NativeEngine.RenderDeviceManager
{
void WriteVideoConfig();
void ResetVideoConfig();
void ChangeVideoMode( bool fullscreen, bool noborder, bool vsync, int width, int height, RenderMultisampleType multisample );
int GetDisplayModes( VideoDisplayMode[] modes, int max, bool windowed );
// Queries the native render device for upscaler support. nUpscalerType is the UpscalerType
// enum from rendersystem/iupscaler.h (UPSCALER_NONE=0, UPSCALER_AMD_FSR3=2, UPSCALER_NVIDIA_DLSS=3).
// Returns false for DLSS on non-NVIDIA hardware.
bool IsUpscalerSupported( int nUpscalerType );
}