Skip to content

Commit eb8c7e2

Browse files
committed
Polishing
1 parent d2fd040 commit eb8c7e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/NRDSample.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ constexpr bool CAMERA_RELATIVE = true;
3434
constexpr bool ALLOW_BLAS_MERGING = true;
3535
constexpr bool ALLOW_HDR = NRIF_PLATFORM == NRIF_WINDOWS && NRD_MODE < OCCLUSION; // use "WIN + ALT + B" to switch HDR mode
3636
constexpr bool USE_LOW_PRECISION_FP_FORMATS = true; // saves a bit of memory and performance
37-
constexpr bool USE_DLSS_TNN = false; // replace CNN (legacy) with TNN (better)
37+
constexpr bool DLSS_PRESET = 0;
3838
constexpr nri::UpscalerType upscalerType = nri::UpscalerType::DLSR;
3939
constexpr int32_t MAX_HISTORY_FRAME_NUM = (int32_t)std::min(60u, std::min(nrd::REBLUR_MAX_HISTORY_FRAME_NUM, nrd::RELAX_MAX_HISTORY_FRAME_NUM));
4040
constexpr uint32_t TEXTURES_PER_MATERIAL = 4;
@@ -896,7 +896,7 @@ bool Sample::Initialize(nri::GraphicsAPI graphicsAPI, bool) {
896896
upscalerDesc.type = upscalerType;
897897
upscalerDesc.mode = mode;
898898
upscalerDesc.flags = upscalerFlags;
899-
upscalerDesc.preset = USE_DLSS_TNN ? 10 : 0;
899+
upscalerDesc.preset = DLSS_PRESET;
900900
NRI_ABORT_ON_FAILURE(NRI.CreateUpscaler(*m_Device, upscalerDesc, m_DLSR));
901901

902902
nri::UpscalerProps upscalerProps = {};

0 commit comments

Comments
 (0)