Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

Commit 83227d8

Browse files
committed
Log first successful feature evaluation
1 parent b0522b9 commit 83227d8

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

source/maindll/NGX/NvNGXDirectX12.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,15 @@ NGXDLLEXPORT NGXResult NVSDK_NGX_D3D12_EvaluateFeature(ID3D12GraphicsCommandList
8787
switch (status)
8888
{
8989
case FFX_OK:
90+
{
91+
static bool once = [&]()
92+
{
93+
spdlog::info("NVSDK_NGX_D3D12_EvaluateFeature: Succeeded.");
94+
return true;
95+
}();
96+
9097
return NGX_SUCCESS;
98+
}
9199

92100
default:
93101
{

source/maindll/NGX/NvNGXVulkan.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,15 @@ NGXDLLEXPORT NGXResult NVSDK_NGX_VULKAN_EvaluateFeature(VkCommandBuffer CommandL
9494
switch (status)
9595
{
9696
case FFX_OK:
97+
{
98+
static bool once = [&]()
99+
{
100+
spdlog::info("NVSDK_NGX_VULKAN_EvaluateFeature: Succeeded.");
101+
return true;
102+
}();
103+
97104
return NGX_SUCCESS;
105+
}
98106

99107
default:
100108
{

0 commit comments

Comments
 (0)