Skip to content

feat(dlssnr): localize effect parameter labels - #16

Merged
SAOG0721 merged 4 commits into
SAOG0721:experimentalfrom
HexBen123:experimental
Sep 5, 2026
Merged

feat(dlssnr): localize effect parameter labels#16
SAOG0721 merged 4 commits into
SAOG0721:experimentalfrom
HexBen123:experimental

Conversation

@HexBen123

Copy link
Copy Markdown

feat(dlssnr): localize effect parameter labels

Summary

Localize the DLSSNR AI Filter parameter labels shown in the scaling-mode effect settings, following the app language setting.

  • Effect parameter labels now resolve through the app's resource system using the key ScalingModes_EffectParam_<effect>_<param> (\ replaced with _).
  • Added zh-Hans and zh-Hant translations for all 12 DLSSNR AI Filter parameters.
  • Added the original English labels as the en-US default resource; without a default-language candidate, PRI generation warns PRI263 and lookups from non-Chinese languages could throw.
  • Languages without a translation fall back to the label defined in the effect file, so non-Chinese languages keep the original English labels. The HLSL files are untouched.

The mechanism is generic: future effect parameter translations only need new resource entries, no C++ changes.

Testing

  • Release x64 build with EnableDLSSNR=true (NGX SDK headers/libs from NVIDIA/DLSS) passes.
  • zh-Hans / zh-Hant display Chinese labels; en-US and other languages display the original English labels.
  • Saved scaling-mode configs are unaffected (parameters are stored by name, not by label).

HexBen123 and others added 4 commits September 3, 2026 09:24
Effect parameter labels now resolve through the app's resource system
using the key ScalingModes_EffectParam_<effect>_<param>. Languages
without a translation fall back to the label defined in the effect
file, so non-Chinese languages keep the original English labels.

Added zh-Hans and zh-Hant translations for all 12 DLSSNR AI Filter
parameters.
The labels existed only in zh-Hans/zh-Hant resources, leaving no
default-language candidate and triggering PRI263 warnings; lookups
from non-Chinese languages could throw. Add the original English
labels as the en-US default.
@SAOG0721
SAOG0721 merged commit 24f8fd9 into SAOG0721:experimental Sep 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants