fix: D3D12单元测试CommandQueue_Execute_EmptyCommandLists修复ExecuteCommandLists参数类型

将GetCommandList()->GetCommandList()改为GetCommandList(),
因为ExecuteCommandLists现在通过GetNativeHandle()获取原生句柄,
需要传递D3D12CommandList*而非ID3D12GraphicsCommandList*

验证: 58个D3D12后端测试全部通过
This commit is contained in:
2026-03-24 05:16:37 +08:00
parent e2050e35ec
commit 1d1eee823d

View File

@@ -11,7 +11,7 @@ TEST_F(D3D12TestFixture, CommandQueue_Get_TimestampFrequency) {
TEST_F(D3D12TestFixture, CommandQueue_Execute_EmptyCommandLists) {
GetCommandList()->Reset();
void* commandLists[] = { GetCommandList()->GetCommandList() };
void* commandLists[] = { GetCommandList() };
GetCommandQueue()->ExecuteCommandLists(1, commandLists);
GetCommandList()->Close();
WaitForGPU();