mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-08-24 15:16:45 +00:00
read dlss flags to unsigned int
This commit is contained in:
@@ -131,7 +131,7 @@ bool FSR2FeatureDx11::InitFSR2(const NVSDK_NGX_Parameter* InParameters)
|
||||
|
||||
_contextDesc.flags = 0;
|
||||
|
||||
int featureFlags;
|
||||
unsigned int featureFlags = 0;
|
||||
InParameters->Get(NVSDK_NGX_Parameter_DLSS_Feature_Create_Flags, &featureFlags);
|
||||
|
||||
_initFlags = featureFlags;
|
||||
|
||||
@@ -444,7 +444,7 @@ bool FSR2FeatureDx11on12::InitFSR2(const NVSDK_NGX_Parameter* InParameters)
|
||||
_contextDesc.device = ffxGetDeviceDX12(Dx12Device);
|
||||
_contextDesc.flags = 0;
|
||||
|
||||
int featureFlags = 0;
|
||||
unsigned int featureFlags = 0;
|
||||
if (!_initFlagsReady)
|
||||
{
|
||||
InParameters->Get(NVSDK_NGX_Parameter_DLSS_Feature_Create_Flags, &featureFlags);
|
||||
|
||||
@@ -403,7 +403,7 @@ bool FSR2FeatureDx12::InitFSR2(const NVSDK_NGX_Parameter* InParameters)
|
||||
|
||||
_contextDesc.flags = 0;
|
||||
|
||||
int featureFlags;
|
||||
unsigned int featureFlags;
|
||||
InParameters->Get(NVSDK_NGX_Parameter_DLSS_Feature_Create_Flags, &featureFlags);
|
||||
|
||||
_initFlags = featureFlags;
|
||||
|
||||
@@ -39,7 +39,7 @@ bool FSR2FeatureVk::InitFSR2(const NVSDK_NGX_Parameter* InParameters)
|
||||
|
||||
_contextDesc.flags = 0;
|
||||
|
||||
int featureFlags;
|
||||
unsigned int featureFlags;
|
||||
InParameters->Get(NVSDK_NGX_Parameter_DLSS_Feature_Create_Flags, &featureFlags);
|
||||
|
||||
_initFlags = featureFlags;
|
||||
|
||||
@@ -441,7 +441,7 @@ bool FSR2FeatureDx11on12_212::InitFSR2(const NVSDK_NGX_Parameter* InParameters)
|
||||
_contextDesc.device = Fsr212::ffxGetDeviceDX12_212(Dx12Device);
|
||||
_contextDesc.flags = 0;
|
||||
|
||||
int featureFlags = 0;
|
||||
unsigned int featureFlags = 0;
|
||||
if (!_initFlagsReady)
|
||||
{
|
||||
InParameters->Get(NVSDK_NGX_Parameter_DLSS_Feature_Create_Flags, &featureFlags);
|
||||
|
||||
@@ -408,7 +408,7 @@ bool FSR2FeatureDx12_212::InitFSR2(const NVSDK_NGX_Parameter* InParameters)
|
||||
|
||||
_contextDesc.flags = 0;
|
||||
|
||||
int featureFlags;
|
||||
unsigned int featureFlags;
|
||||
InParameters->Get(NVSDK_NGX_Parameter_DLSS_Feature_Create_Flags, &featureFlags);
|
||||
|
||||
_initFlags = featureFlags;
|
||||
|
||||
@@ -39,7 +39,7 @@ bool FSR2FeatureVk212::InitFSR2(const NVSDK_NGX_Parameter* InParameters)
|
||||
|
||||
_contextDesc.flags = 0;
|
||||
|
||||
int featureFlags;
|
||||
unsigned int featureFlags;
|
||||
InParameters->Get(NVSDK_NGX_Parameter_DLSS_Feature_Create_Flags, &featureFlags);
|
||||
|
||||
bool Hdr = featureFlags & NVSDK_NGX_DLSS_Feature_Flags_IsHDR;
|
||||
|
||||
@@ -59,7 +59,7 @@ bool XeSSFeature::InitXeSS(ID3D12Device* device, const NVSDK_NGX_Parameter* InPa
|
||||
|
||||
xessParams.initFlags = XESS_INIT_FLAG_NONE;
|
||||
|
||||
int featureFlags = 0;
|
||||
unsigned int featureFlags = 0;
|
||||
if (!_initFlagsReady)
|
||||
{
|
||||
InParameters->Get(NVSDK_NGX_Parameter_DLSS_Feature_Create_Flags, &featureFlags);
|
||||
|
||||
Reference in New Issue
Block a user