mirror of
https://git.triforceproject.com/triforce/source
synced 2026-11-22 17:19:58 -04:00
The 0.6 crashes after warps and area changes fixed (no write-back into memory the capture leaves out), invisible objects fixed (occlusion gate), DLSS frame generation flicker fixed, achievements, the renderer built with a play profile, faster translated game code, helper threads judged on settled scenes, memory, shader preparation, audio effects, launcher, controls and Linux fixes.
36 lines
1.9 KiB
C++
36 lines
1.9 KiB
C++
// NVIDIA DLSS Super Resolution, one of the temporal upscaler's engines (vk_temporal.h; vk_dlss.cpp). Built in only with
|
|
// NVIDIA's NGX SDK (HOOKSHOT_NGX, scripts/ngx_sdk.py: Linux and Windows); without it these say DLSS is not there and the
|
|
// game's network runs.
|
|
#pragma once
|
|
|
|
#include <vector>
|
|
|
|
#include "vk_internal.h"
|
|
|
|
namespace mkwvk {
|
|
|
|
struct TemporalEngine;
|
|
|
|
/// Whether this build has DLSS in it (HOOKSHOT_NGX)
|
|
bool dlss_built();
|
|
/// Why DLSS cannot be chosen here (the Insert menu's Upscaler row says it), DLSS_OK when it can or is not known yet
|
|
enum DlssWhy { DLSS_OK, DLSS_NOT_BUILT, DLSS_ENV_OFF, DLSS_NEEDS_RTX, DLSS_NEEDS_DRIVER, DLSS_NO_RUNTIME,
|
|
DLSS_RUNTIME_NOT_ASCII, DLSS_NGX_FAILED, DLSS_WHY_COUNT };
|
|
DlssWhy dlss_why();
|
|
/// Asks NGX once whether DLSS runs on this device, so dlss_why knows before the first upscale (the menu, when it opens).
|
|
/// Nothing off an NVIDIA device with NGX's extensions, or in a build without DLSS
|
|
void dlss_probe();
|
|
/// The instance's extensions DLSS needs, added to `want` when the loader has them (all: what it has)
|
|
void dlss_instance_extensions(std::vector<const char*>& want, const std::vector<VkExtensionProperties>& all);
|
|
/// The device's extensions DLSS needs, added to `want` when the device has them
|
|
void dlss_device_extensions(std::vector<const char*>& want, const std::vector<VkExtensionProperties>& all);
|
|
/// DLSS as the temporal upscaler's engine (DLSS and DLAA on the Upscaler row); nullptr in a build without it
|
|
const TemporalEngine* dlss_engine();
|
|
/// (Triforce, 11-22, the performance audit's PRESENT-36, after Source A's and Source B's) The card's video memory for the
|
|
/// DLSS model row's CNN rule (upscaler_rows.h cnn_for_vram: the K row draws with preset E under 7 GB), in bytes; 0 unless
|
|
/// RX_VK_DLSS_CNN_VRAM=1 (off by default: the picture is the owner's call). DLSS's preset and the menu's row both ask
|
|
/// this, so they agree. In every build
|
|
uint64_t dlss_cnn_vram();
|
|
|
|
} // namespace mkwvk
|