【关键节点】修复D3D12CommandQueue::ExecuteCommandLists类型混淆bug并完善集成测试配置
1. D3D12CommandQueue::ExecuteCommandLists修复:确保正确调用GetNativeHandle() 2. 集成测试修复:传递&gCommandList而不是gCommandList.GetCommandList() 3. CMakeLists.txt修复:添加renderdoc.dll到所有D3D12/OpenGL集成测试的POST_BUILD命令 测试验证: - 单元测试:144/144通过 - D3D12集成测试:minimal/quad/triangle/sphere全部通过 - OpenGL集成测试:minimal/quad/triangle/sphere全部通过
This commit is contained in:
@@ -59,7 +59,7 @@ void D3D12CommandQueue::ExecuteCommandLists(uint32_t count, void** lists) {
|
||||
std::vector<ID3D12CommandList*> cmdLists(count);
|
||||
for (uint32_t i = 0; i < count; ++i) {
|
||||
if (lists[i]) {
|
||||
RHICommandList* cmdList = static_cast<RHICommandList*>(lists[i]);
|
||||
auto* cmdList = static_cast<RHICommandList*>(lists[i]);
|
||||
cmdLists[i] = static_cast<ID3D12CommandList*>(cmdList->GetNativeHandle());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user