feat: 实现 D3D12CommandList 命令列表类

- 添加 D3D12CommandList.h 头文件,包含 Viewport、Rect、ResourceBarrierDesc 结构体
- 实现 ID3D12GraphicsCommandList 封装
- 实现所有渲染命令:TransitionBarrier、UAVBarrier、AliasBarrier
- 实现状态追踪和资源追踪
- 添加到 CMakeLists.txt 构建系统
- 修复 tests/D3D12/run.bat 路径问题
This commit is contained in:
2026-03-15 18:05:06 +08:00
parent 58341c9daf
commit bf37b1c00c
4 changed files with 447 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
@echo off
cd /d "D:\Xuanchi\Main\XCEngine\build\tests\D3D12\Debug"
cd /d "%~dp0..\..\..\..\build\tests\D3D12\Debug"
if exist "D3D12_engine_log.txt" del "D3D12_engine_log.txt"
D3D12.exe
python "D:\Xuanchi\Main\XCEngine\tests\D3D12\compare_ppm.py" "screenshot.ppm" "GT.ppm" 5
pause
python "%~dp0compare_ppm.py" "screenshot.ppm" "GT.ppm" 5
pause