- CommandAllocator: Reset, MultipleReset, DifferentTypes - CommandList: Close, GetDesc - CommandQueue: GetTimestampFrequency, ExecuteCommandLists - Note: Some tests fail after ExecuteCommandLists due to GPU state
16 lines
431 B
C++
16 lines
431 B
C++
#include "fixtures/D3D12TestFixture.h"
|
|
|
|
TEST_F(D3D12TestFixture, CommandList_Placeholder) {
|
|
ASSERT_NE(GetCommandList(), nullptr);
|
|
}
|
|
|
|
TEST_F(D3D12TestFixture, CommandList_Close) {
|
|
HRESULT hr = GetCommandList()->Close();
|
|
ASSERT_HRESULT_SUCCEEDED(hr);
|
|
}
|
|
|
|
TEST_F(D3D12TestFixture, CommandList_GetDesc) {
|
|
D3D12_COMMAND_LIST_TYPE type = GetCommandList()->GetType();
|
|
EXPECT_EQ(type, D3D12_COMMAND_LIST_TYPE_DIRECT);
|
|
}
|