fix: D3D12单元测试CommandQueue_Execute_EmptyCommandLists修复ExecuteCommandLists参数类型
将GetCommandList()->GetCommandList()改为GetCommandList(), 因为ExecuteCommandLists现在通过GetNativeHandle()获取原生句柄, 需要传递D3D12CommandList*而非ID3D12GraphicsCommandList* 验证: 58个D3D12后端测试全部通过
This commit is contained in:
@@ -11,7 +11,7 @@ TEST_F(D3D12TestFixture, CommandQueue_Get_TimestampFrequency) {
|
|||||||
|
|
||||||
TEST_F(D3D12TestFixture, CommandQueue_Execute_EmptyCommandLists) {
|
TEST_F(D3D12TestFixture, CommandQueue_Execute_EmptyCommandLists) {
|
||||||
GetCommandList()->Reset();
|
GetCommandList()->Reset();
|
||||||
void* commandLists[] = { GetCommandList()->GetCommandList() };
|
void* commandLists[] = { GetCommandList() };
|
||||||
GetCommandQueue()->ExecuteCommandLists(1, commandLists);
|
GetCommandQueue()->ExecuteCommandLists(1, commandLists);
|
||||||
GetCommandList()->Close();
|
GetCommandList()->Close();
|
||||||
WaitForGPU();
|
WaitForGPU();
|
||||||
|
|||||||
Reference in New Issue
Block a user