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

@@ -87,11 +87,13 @@ add_library(XCEngine STATIC
include/XCEngine/RHI/D3D12/D3D12Device.h
include/XCEngine/RHI/D3D12/D3D12CommandQueue.h
include/XCEngine/RHI/D3D12/D3D12CommandAllocator.h
include/XCEngine/RHI/D3D12/D3D12CommandList.h
include/XCEngine/RHI/D3D12/D3D12Fence.h
include/XCEngine/RHI/D3D12/D3D12Screenshot.h
src/RHI/D3D12Device.cpp
src/RHI/D3D12CommandQueue.cpp
src/RHI/D3D12CommandAllocator.cpp
src/RHI/D3D12CommandList.cpp
src/RHI/D3D12Fence.cpp
src/RHI/D3D12Screenshot.cpp
)