Skip to content

Commit a01eb0e

Browse files
committed
feat(dx11): add mixed Render to Upscaled stages
Add native DX11 bridge support for Render and Upscaled groups with independent models, looks and results across up to four passes. Require GPU completion proof before exposing a stage twin, preserve pending delivery across mode changes, and retire Render worksets by their exclusive heap and COM references. Add planner, bridge, failure, retirement and DX12 regression coverage plus a protected Sons of the Forest DX11 acceptance. Bump to 0.2.0-dev.6 without creating a tag or release.
1 parent 30f0985 commit a01eb0e

25 files changed

Lines changed: 691 additions & 84 deletions

‎README.md‎

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ and four menu themes.
2222

2323
| Version scope | What is available |
2424
| --- | --- |
25+
| **0.2.0-dev.6 source (unreleased)** | Adds native DX11 Bridge Render → game DLSS SR/DLAA → Upscaled, reusing independent per-pass models, looks and results across up to four passes. Each mixed-stage delivery requires proven GPU completion and adds synchronization cost. DX11 game/image-quality acceptance is separate from automated GPU tests. Cross-stage Present, Vulkan and FG-owned input remain disabled. See the [Multi-Pass guide](docs/USER_GUIDE.md#en-multipass). |
2526
| **0.2.0-dev.5 pre-release** | Adds optional native Unicode assisted input, streamlined presets/profiles and independent per-pass stages, and corrects the packaged documentation images. DX12 Render → game DLSS SR → Upscaled has bounded Witcher 3 HDR tests with AA/AB/BA/BB; broader image/long-session acceptance remains open. Cross-stage Present and DX11/Vulkan are disabled. See the [Multi-Pass guide](docs/USER_GUIDE.md#en-multipass) and [profile guide](docs/USER_GUIDE.md#en-presets). |
2627
| **0.1.0** | This README describes the version's four-page menu, dual models, independent per-pass look/result settings and four themes. See the [release notes](docs/releases/v0.1.0.md) for validation and remaining limits. |
27-
| [Previous pre-release: v0.2.0-dev.4](https://github.com/williamstosh/RenoDX-DLSSNR-Nexus/releases/tag/v0.2.0-dev.4) | Same stage and input source; its package omitted two documentation images. Use v0.2.0-dev.5 for the complete package. |
28+
| [Previous pre-release: v0.2.0-dev.5](https://github.com/williamstosh/RenoDX-DLSSNR-Nexus/releases/tag/v0.2.0-dev.5) | Adds per-pass stages, assisted input and the corrected documentation image package. |
2829

2930
### What makes Nexus different
3031

@@ -57,8 +58,9 @@ protection, migration and revision-conflict recovery.
5758
Model-look controls steer what NR generates; result editing reshapes the change
5859
returned by each pass. Model choice, look inheritance and result inheritance are
5960
separate, so additional layers can follow Pass 1 or keep their own saved edits.
60-
Processing location, working resolution and upsampling remain shared across the
61-
chain, as does Independent skin. Result controls have enable and resource
61+
Pass 1 selects the initial processing location; later passes can inherit or
62+
select a legal later stage. Working-resolution and upsampling controls remain
63+
shared across the chain, as does Independent skin. Result controls have enable and resource
6264
requirements.
6365

6466
See the [User Guide](docs/USER_GUIDE.md) for values, dependencies, inheritance
@@ -77,7 +79,7 @@ in the same offscreen candidate UI example.*
7779

7880
![Save a local NR profile](docs/images/ui/presets.webp)
7981

80-
*The compact save task in the 0.2.0-dev.5 development source; more options and
82+
*The compact save task in the 0.2.0-dev.6 development source; more options and
8183
file export expand when needed. Synthetic offscreen example, with no file saved.*
8284

8385
![Cyber Neon, Nexus Dark, Fluent Light and Midnight OLED](docs/images/ui/themes.webp)
@@ -251,9 +253,10 @@ NR Nexus 通过 [ReShade](https://reshade.me/) 为兼容游戏提供 NVIDIA DLSS
251253

252254
| 版本范围 | 可用范围 |
253255
| --- | --- |
256+
| **0.2.0-dev.6 源码(未发布)** | 新增原生 DX11 Bridge Render → 游戏 DLSS SR/DLAA → Upscaled,最多四层沿用逐层独立模型、外观及结果配置。混合链每阶段交付须确认 GPU 真正完成,会增加同步成本;DX11 游戏/画质验收与自动化 GPU 测试分开记录。跨阶段 Present、Vulkan 和 FG 接管输入仍停用。见[叠层指南](docs/USER_GUIDE.md#zh-multipass)。 |
254257
| **0.2.0-dev.5 预发布** | 新增可选原生 Unicode 辅助输入、精简预设/方案及逐层独立阶段,并修正发布包的文档配图清单。DX12 Render → 游戏 DLSS SR → Upscaled 已有巫师3 HDR 下 AA/AB/BA/BB 短时实测,广泛画质/长时验收仍未完成。跨阶段 Present、DX11/Vulkan 停用。见[叠层指南](docs/USER_GUIDE.md#zh-multipass)和[方案指南](docs/USER_GUIDE.md#zh-presets)。 |
255258
| **0.1.0** | 本页描述此版本的四页菜单、双模型、逐层独立外观/结果设置与四套主题;验证及剩余限制见[版本说明](docs/releases/v0.1.0.md)。 |
256-
| [上一预发布版:v0.2.0-dev.4](https://github.com/williamstosh/RenoDX-DLSSNR-Nexus/releases/tag/v0.2.0-dev.4) | 插件阶段与输入源码相同;该包缺少两张文档配图,完整包请使用 v0.2.0-dev.5。 |
259+
| [上一预发布版:v0.2.0-dev.5](https://github.com/williamstosh/RenoDX-DLSSNR-Nexus/releases/tag/v0.2.0-dev.5) | 新增逐层阶段、辅助输入及修正后的文档配图包。 |
257260

258261
### 核心特色
259262

@@ -281,8 +284,9 @@ Slot 自动保存与共享库文件、ReShade 正常设置分别处理,强退
281284
只读/损坏保护、迁移及 revision 冲突恢复见指南。
282285

283286
模型外观控制 NR 生成什么,结果编辑则塑造每层模型已经返回的改变量。模型选择、外观继承、
284-
结果继承彼此独立,附加层既可沿用第 1 层,也可保留各自保存的编辑。介入点、工作分辨率和
285-
上采样仍全链共享,“独立皮肤”也是全链设置;结果控件有各自的开关及资源前提。
287+
结果继承彼此独立,附加层既可沿用第 1 层,也可保留各自保存的编辑。第 1 层选择起始介入点,
288+
后续层可继承或选择合法的后续阶段。工作分辨率和上采样仍全链共享,“独立皮肤”也是全链设置;
289+
结果控件有各自的开关及资源前提。
286290

287291
参数值、依赖、继承和配置示例见[玩家指南](docs/USER_GUIDE.md)。
288292

@@ -297,7 +301,7 @@ Slot 自动保存与共享库文件、ReShade 正常设置分别处理,强退
297301

298302
![保存本地 NR 方案](docs/images/ui/presets-zh.webp)
299303

300-
*0.2.0-dev.5 开发预发布源码中的简洁保存任务,更多选项及文件导出按需展开;
304+
*0.2.0-dev.6 开发预发布源码中的简洁保存任务,更多选项及文件导出按需展开;
301305
本图为合成状态的离屏示例,未执行保存。*
302306

303307
![Cyber Neon、Nexus Dark、Fluent Light、Midnight OLED](docs/images/ui/themes-zh.webp)

‎bridge_params.hpp‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,13 +196,22 @@ class ScopedD3D11Redirect {
196196
// the same way (RestorePreSrColor).
197197
game_ = const_cast<NVSDK_NGX_Parameter*>(game);
198198
name_ = name;
199+
// Bridge retirement can run between preparation and the real SR call.
200+
// Keep both bindings alive until restoration has completed.
201+
static_cast<ID3D11Resource*>(original_)->AddRef();
202+
replacement_ = replacement;
203+
if (replacement_ != nullptr) replacement_->AddRef();
199204
Write(replacement);
200205
}
201206

202207
void Restore() {
203208
if (game_ == nullptr) return;
204209
Write(original_);
205210
game_ = nullptr;
211+
static_cast<ID3D11Resource*>(original_)->Release();
212+
original_ = nullptr;
213+
if (replacement_ != nullptr) replacement_->Release();
214+
replacement_ = nullptr;
206215
}
207216

208217
private:
@@ -217,6 +226,7 @@ class ScopedD3D11Redirect {
217226
NVSDK_NGX_Parameter* game_ = nullptr;
218227
const char* name_ = nullptr;
219228
void* original_ = nullptr;
229+
ID3D11Resource* replacement_ = nullptr;
220230
bool typed_ = false;
221231
};
222232

0 commit comments

Comments
 (0)