Skip to content

Commit

Permalink
read dlss flags to unsigned int
Browse files Browse the repository at this point in the history
  • Loading branch information
cdozdil committed May 7, 2024
1 parent 8cbb64c commit fedce2e
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion OptiScaler/backends/fsr2/FSR2Feature_Dx11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion OptiScaler/backends/fsr2/FSR2Feature_Dx11On12.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion OptiScaler/backends/fsr2/FSR2Feature_Dx12.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion OptiScaler/backends/fsr2/FSR2Feature_Vk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion OptiScaler/backends/fsr2_212/FSR2Feature_Dx11On12_212.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion OptiScaler/backends/fsr2_212/FSR2Feature_Dx12_212.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion OptiScaler/backends/fsr2_212/FSR2Feature_Vk_212.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion OptiScaler/backends/xess/XeSSFeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fedce2e

Please sign in to comment.