From 29fb42b103e75d0f7147d53c0b8be0cf63cb5fe5 Mon Sep 17 00:00:00 2001 From: FakeMichau <49685661+FakeMichau@users.noreply.github.com> Date: Tue, 10 Sep 2024 02:17:08 +0200 Subject: [PATCH] Misc --- OptiScaler/nvapi/fakenvapi/nvapi.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/OptiScaler/nvapi/fakenvapi/nvapi.cpp b/OptiScaler/nvapi/fakenvapi/nvapi.cpp index 0591a82c..958a1814 100755 --- a/OptiScaler/nvapi/fakenvapi/nvapi.cpp +++ b/OptiScaler/nvapi/fakenvapi/nvapi.cpp @@ -328,6 +328,7 @@ namespace nvd { break; case PRESENT_START: if (lowlatency_ctx.fg) lowlatency_ctx.mark_end_of_rendering(); + break; } return Ok(); } @@ -342,13 +343,6 @@ namespace nvd { } NvAPI_Status __cdecl NvAPI_D3D_SetReflexSync(IUnknown* pDev, NV_SET_REFLEX_SYNC_PARAMS* pSetReflexSyncParams) { - log("SetReflexSync"); - log(std::format("\tdisable: {}", (unsigned long)pSetReflexSyncParams->bDisable)); - log(std::format("\tenable: {}", (unsigned long)pSetReflexSyncParams->bEnable)); - log(std::format("\ttimeInQueueUs: {}", (signed long)pSetReflexSyncParams->timeInQueueUs)); - log(std::format("\ttimeInQueueUsTarget: {}", (unsigned long)pSetReflexSyncParams->timeInQueueUsTarget)); - log(std::format("\tvblankIntervalUs: {}", (unsigned long)pSetReflexSyncParams->vblankIntervalUs)); - log(std::format("\tvblankIntervalUs: {}", (unsigned long)pSetReflexSyncParams->version)); return Ok(); } @@ -428,6 +422,7 @@ namespace nvd { return Ok(); } + // Taken directly from dxvk-nvapi static bool ConvertBuildRaytracingAccelerationStructureInputs(const NVAPI_D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS_EX* nvDesc, std::vector& geometryDescs, D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS* d3dDesc) { d3dDesc->Type = nvDesc->type; // assume that OMM via VK_EXT_opacity_micromap and DMM via VK_NV_displacement_micromap are not supported, allow only standard flags to be passed