17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-12 01:48:14 +01:00

Add DLSS Frame Generation (gfx.framegeneration x2/x3/x4) and Reflex (gfx.reflex) to the Vulkan renderer

This commit is contained in:
2026-10-25 20:52:12 +01:00
parent 1841e6d7b0
commit a6bdeeaa2b
23 changed files with 1474 additions and 85 deletions

View File

@@ -83,6 +83,11 @@ class device
{
return m_raytracing;
}
// VK_NV_low_latency2 with VK_KHR_present_id is on (reflex, gfx.reflex)
bool low_latency_enabled() const
{
return m_low_latency;
}
private:
static queue_families find_queue_families(VkInstance Instance, VkPhysicalDevice Physical, VkSurfaceKHR Surface, std::uint32_t &TimestampBits);
@@ -96,6 +101,7 @@ class device
bool m_portability_subset{false};
bool m_memory_budget{false};
bool m_raytracing{false};
bool m_low_latency{false};
VkQueue m_graphics_queue{VK_NULL_HANDLE};
VkQueue m_compute_queue{VK_NULL_HANDLE};