mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-09-22 21:35:51 +00:00
for getting current feature
This commit is contained in:
@@ -326,6 +326,7 @@ NVSDK_NGX_API NVSDK_NGX_Result NVSDK_NGX_D3D11_EvaluateFeature(ID3D11DeviceConte
|
||||
}
|
||||
|
||||
deviceContext = Dx11Contexts[InFeatureHandle->Id].get();
|
||||
Config::Instance()->CurrentFeature = deviceContext;
|
||||
|
||||
if (deviceContext == nullptr)
|
||||
{
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
#include "NVNGX_Parameter.h"
|
||||
|
||||
inline ID3D12Device* D3D12Device = nullptr;
|
||||
//inline std::unique_ptr<Imgui_Dx12> ImguiDx12 = nullptr;
|
||||
static inline ankerl::unordered_dense::map <unsigned int, std::unique_ptr<IFeature_Dx12>> Dx12Contexts;
|
||||
inline HWND currentHwnd = nullptr;
|
||||
|
||||
@@ -361,6 +360,7 @@ NVSDK_NGX_API NVSDK_NGX_Result NVSDK_NGX_D3D12_EvaluateFeature(ID3D12GraphicsCom
|
||||
}
|
||||
|
||||
deviceContext = Dx12Contexts[InFeatureHandle->Id].get();
|
||||
Config::Instance()->CurrentFeature = deviceContext;
|
||||
|
||||
if (deviceContext == nullptr)
|
||||
{
|
||||
|
||||
@@ -248,6 +248,7 @@ NVSDK_NGX_API NVSDK_NGX_Result NVSDK_NGX_VULKAN_EvaluateFeature(VkCommandBuffer
|
||||
spdlog::warn("NVSDK_NGX_D3D12_EvaluateFeature callback exist");
|
||||
|
||||
const auto deviceContext = VkContexts[InFeatureHandle->Id].get();
|
||||
Config::Instance()->CurrentFeature = deviceContext;
|
||||
|
||||
if (deviceContext->Evaluate(InCmdList, InParameters))
|
||||
return NVSDK_NGX_Result_Success;
|
||||
|
||||
Reference in New Issue
Block a user