Bring PS5 GTA6 to 120FPS with DLSS 5. An advanced Windows video player and capture enhancement tool featuring real-time preview for videos, images, and capture card sources. Combine AI-powered Super Resolution, DLSS5 image enhancement, and Frame Generation to deliver a next-generation visual experience.
C++
Avoid Windows small macro in real-runtime metadata test
Veyra Goal Agentbf1c433cc34d
diff --git a/tests/integration/LmxxfNrRuntimeMetadataTests.cpp b/tests/integration/LmxxfNrRuntimeMetadataTests.cppindex 31e2742d..70d89303 100644--- a/tests/integration/LmxxfNrRuntimeMetadataTests.cpp+++ b/tests/integration/LmxxfNrRuntimeMetadataTests.cpp@@ -12,22 +12,22 @@ int wmain(int argc,wchar_t** argv){auto check=[&](bool ok,const char* text){++checks;failures+=!ok;std::cout<<(ok?"PASS ":"FAIL ")<<text<<std::endl;};gfx::D3D12DeviceContext ctx;Status status=Status::Ok;gfx::DeviceContextDesc desc{};if(!ctx.initialize(desc,status))return 2;- pipeline::LmxxfNrBackend small,original;- check(!small.open(runtime,ctx.device(),ctx.directQueue(),0x10de),"actual NVIDIA vendor remains blocked");+ pipeline::LmxxfNrBackend smallBackend,original;+ check(!smallBackend.open(runtime,ctx.device(),ctx.directQueue(),0x10de),"actual NVIDIA vendor remains blocked");_putenv_s("DLSS5_MULTI_PASS","3"); // Must not override either compiled model.- check(small.open(runtime,ctx.device(),ctx.directQueue(),0x1002,true),"real Small Create/PrepareSession metadata");+ check(smallBackend.open(runtime,ctx.device(),ctx.directQueue(),0x1002,true),"real Small Create/PrepareSession metadata");check(original.open(runtime,ctx.device(),ctx.directQueue(),0x1002,false),"real Original metadata coexists with Small");- check(small.ready()&&original.ready()&&small.admits(1920,1080)&&!small.admits(3840,2160),"actual capability budget retained");- original.close();check(small.ready(),"closing Original preserves Small session");small.close();+ check(smallBackend.ready()&&original.ready()&&smallBackend.admits(1920,1080)&&!smallBackend.admits(3840,2160),"actual capability budget retained");+ original.close();check(smallBackend.ready(),"closing Original preserves Small session");smallBackend.close();_putenv_s("DLSS5_MULTI_PASS","");_putenv_s("DLSS5_TEMPORAL_MODE","1");- check(!small.open(runtime,ctx.device(),ctx.directQueue(),0x1002,true),"hidden temporal mode cannot silently select Original geometry");+ check(!smallBackend.open(runtime,ctx.device(),ctx.directQueue(),0x1002,true),"hidden temporal mode cannot silently select Original geometry");_putenv_s("DLSS5_TEMPORAL_MODE","");std::filesystem::create_directories(scratch/L"assets");std::filesystem::copy_file(runtime/L"LmxxfNrRuntime.dll",scratch/L"LmxxfNrRuntime.dll");- check(!small.open(scratch,ctx.device(),ctx.directQueue(),0x1002,true)&&small.error().find("Small model assets")!=std::string::npos,"real missing Small assets fail before Create; no silent fallback");+ check(!smallBackend.open(scratch,ctx.device(),ctx.directQueue(),0x1002,true)&&smallBackend.error().find("Small model assets")!=std::string::npos,"real missing Small assets fail before Create; no silent fallback");std::filesystem::copy_file(runtime/L"LmxxfNrRuntime-Original.dll",scratch/L"LmxxfNrRuntime.dll",std::filesystem::copy_options::overwrite_existing);- check(!small.open(scratch,ctx.device(),ctx.directQueue(),0x1002,true)&&small.error().find("model module mismatch")!=std::string::npos,"actual swapped module refuses wrong model");+ check(!smallBackend.open(scratch,ctx.device(),ctx.directQueue(),0x1002,true)&&smallBackend.error().find("model module mismatch")!=std::string::npos,"actual swapped module refuses wrong model");check(original.open(runtime,ctx.device(),ctx.directQueue(),0x1002,false),"real module reopens after metadata teardown");original.close();uint32_t removed=0;check(ctx.checkDeviceAlive(removed),"device alive after metadata lifecycle");std::cout<<"Real lmxxf metadata: "<<checks<<" checks, "<<failures<<" failures. NO AMD inference/quality/performance measured.\n";