mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-08-02 17:00:23 -04:00
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.
22 lines
767 B
Modula-2
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 );
|
|
}
|