test: rename unit tests to Component_Category_SubBehavior format, remove Placeholder tests
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
#include "fixtures/D3D12TestFixture.h"
|
||||
|
||||
TEST_F(D3D12TestFixture, Buffer_Placeholder) {
|
||||
ASSERT_NE(GetDevice(), nullptr);
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, Buffer_CreateBuffer_DefaultHeap) {
|
||||
TEST_F(D3D12TestFixture, Buffer_Create_DefaultHeap) {
|
||||
const uint64_t bufferSize = 1024;
|
||||
|
||||
D3D12_HEAP_PROPERTIES heapProps = {};
|
||||
@@ -41,7 +37,7 @@ TEST_F(D3D12TestFixture, Buffer_CreateBuffer_DefaultHeap) {
|
||||
EXPECT_EQ(desc.Width, bufferSize);
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, Buffer_CreateBuffer_UploadHeap) {
|
||||
TEST_F(D3D12TestFixture, Buffer_Create_UploadHeap) {
|
||||
const uint64_t bufferSize = 2048;
|
||||
|
||||
D3D12_HEAP_PROPERTIES heapProps = {};
|
||||
@@ -72,7 +68,7 @@ TEST_F(D3D12TestFixture, Buffer_CreateBuffer_UploadHeap) {
|
||||
ASSERT_NE(buffer.Get(), nullptr);
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, Buffer_GetGPUVirtualAddress) {
|
||||
TEST_F(D3D12TestFixture, Buffer_Get_GPUVirtualAddress) {
|
||||
const uint64_t bufferSize = 512;
|
||||
|
||||
D3D12_HEAP_PROPERTIES heapProps = {};
|
||||
@@ -103,7 +99,7 @@ TEST_F(D3D12TestFixture, Buffer_GetGPUVirtualAddress) {
|
||||
EXPECT_NE(gpuAddress, 0);
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, Buffer_MapUnmap) {
|
||||
TEST_F(D3D12TestFixture, Buffer_Map_Unmap) {
|
||||
const uint64_t bufferSize = 256;
|
||||
|
||||
D3D12_HEAP_PROPERTIES heapProps = {};
|
||||
@@ -140,7 +136,7 @@ TEST_F(D3D12TestFixture, Buffer_MapUnmap) {
|
||||
buffer->Unmap(0, nullptr);
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, Buffer_AlignmentRequirements) {
|
||||
TEST_F(D3D12TestFixture, Buffer_Get_AlignmentRequirements) {
|
||||
D3D12_CONSTANT_BUFFER_VIEW_DESC cbvDesc = {};
|
||||
cbvDesc.BufferLocation = 256;
|
||||
cbvDesc.SizeInBytes = 256;
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
#include "fixtures/D3D12TestFixture.h"
|
||||
|
||||
TEST_F(D3D12TestFixture, CommandAllocator_Placeholder) {
|
||||
ASSERT_NE(GetCommandAllocator(), nullptr);
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, CommandAllocator_Reset) {
|
||||
TEST_F(D3D12TestFixture, CommandAllocator_Reset_Basic) {
|
||||
ComPtr<ID3D12CommandAllocator> allocator;
|
||||
HRESULT hr = GetDevice()->CreateCommandAllocator(
|
||||
D3D12_COMMAND_LIST_TYPE_DIRECT,
|
||||
@@ -16,7 +12,7 @@ TEST_F(D3D12TestFixture, CommandAllocator_Reset) {
|
||||
ASSERT_HRESULT_SUCCEEDED(hr);
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, CommandAllocator_MultipleReset) {
|
||||
TEST_F(D3D12TestFixture, CommandAllocator_Reset_Multiple) {
|
||||
ComPtr<ID3D12CommandAllocator> allocator;
|
||||
HRESULT hr = GetDevice()->CreateCommandAllocator(
|
||||
D3D12_COMMAND_LIST_TYPE_DIRECT,
|
||||
@@ -30,7 +26,7 @@ TEST_F(D3D12TestFixture, CommandAllocator_MultipleReset) {
|
||||
}
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, CommandAllocator_DifferentTypes) {
|
||||
TEST_F(D3D12TestFixture, CommandAllocator_Create_DifferentTypes) {
|
||||
D3D12_COMMAND_LIST_TYPE types[] = {
|
||||
D3D12_COMMAND_LIST_TYPE_DIRECT,
|
||||
D3D12_COMMAND_LIST_TYPE_COMPUTE,
|
||||
|
||||
@@ -1,15 +1,11 @@
|
||||
#include "fixtures/D3D12TestFixture.h"
|
||||
|
||||
TEST_F(D3D12TestFixture, CommandList_Placeholder) {
|
||||
ASSERT_NE(GetCommandList(), nullptr);
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, CommandList_Close) {
|
||||
TEST_F(D3D12TestFixture, CommandList_Close_Basic) {
|
||||
HRESULT hr = GetCommandList()->Close();
|
||||
ASSERT_HRESULT_SUCCEEDED(hr);
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, CommandList_GetDesc) {
|
||||
TEST_F(D3D12TestFixture, CommandList_Get_Desc) {
|
||||
D3D12_COMMAND_LIST_TYPE type = GetCommandList()->GetType();
|
||||
EXPECT_EQ(type, D3D12_COMMAND_LIST_TYPE_DIRECT);
|
||||
}
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
#include "fixtures/D3D12TestFixture.h"
|
||||
|
||||
TEST_F(D3D12TestFixture, CommandQueue_Placeholder) {
|
||||
ASSERT_NE(GetCommandQueue(), nullptr);
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, CommandQueue_GetTimestampFrequency) {
|
||||
TEST_F(D3D12TestFixture, CommandQueue_Get_TimestampFrequency) {
|
||||
D3D12_COMMAND_QUEUE_DESC desc = {};
|
||||
desc.Type = D3D12_COMMAND_LIST_TYPE_DIRECT;
|
||||
|
||||
@@ -18,7 +14,7 @@ TEST_F(D3D12TestFixture, CommandQueue_GetTimestampFrequency) {
|
||||
EXPECT_GT(frequency, 0);
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, CommandQueue_ExecuteCommandLists_Empty) {
|
||||
TEST_F(D3D12TestFixture, CommandQueue_Execute_EmptyCommandLists) {
|
||||
GetCommandList()->Reset(GetCommandAllocator(), nullptr);
|
||||
ID3D12CommandList* commandLists[] = { GetCommandList() };
|
||||
GetCommandQueue()->ExecuteCommandLists(1, commandLists);
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
#include "fixtures/D3D12TestFixture.h"
|
||||
|
||||
TEST_F(D3D12TestFixture, DescriptorHeap_Placeholder) {
|
||||
ASSERT_NE(GetDevice(), nullptr);
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, DescriptorHeap_CreateCBV_SRV_UAV) {
|
||||
TEST_F(D3D12TestFixture, DescriptorHeap_Create_CBV_SRV_UAV) {
|
||||
D3D12_DESCRIPTOR_HEAP_DESC heapDesc = {};
|
||||
heapDesc.Type = D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV;
|
||||
heapDesc.NumDescriptors = 10;
|
||||
@@ -20,7 +16,7 @@ TEST_F(D3D12TestFixture, DescriptorHeap_CreateCBV_SRV_UAV) {
|
||||
EXPECT_EQ(desc.NumDescriptors, 10);
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, DescriptorHeap_CreateSampler) {
|
||||
TEST_F(D3D12TestFixture, DescriptorHeap_Create_Sampler) {
|
||||
D3D12_DESCRIPTOR_HEAP_DESC heapDesc = {};
|
||||
heapDesc.Type = D3D12_DESCRIPTOR_HEAP_TYPE_SAMPLER;
|
||||
heapDesc.NumDescriptors = 5;
|
||||
@@ -34,7 +30,7 @@ TEST_F(D3D12TestFixture, DescriptorHeap_CreateSampler) {
|
||||
EXPECT_EQ(desc.Type, D3D12_DESCRIPTOR_HEAP_TYPE_SAMPLER);
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, DescriptorHeap_CreateRTV) {
|
||||
TEST_F(D3D12TestFixture, DescriptorHeap_Create_RTV) {
|
||||
D3D12_DESCRIPTOR_HEAP_DESC heapDesc = {};
|
||||
heapDesc.Type = D3D12_DESCRIPTOR_HEAP_TYPE_RTV;
|
||||
heapDesc.NumDescriptors = 4;
|
||||
@@ -48,7 +44,7 @@ TEST_F(D3D12TestFixture, DescriptorHeap_CreateRTV) {
|
||||
EXPECT_EQ(desc.Type, D3D12_DESCRIPTOR_HEAP_TYPE_RTV);
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, DescriptorHeap_CreateDSV) {
|
||||
TEST_F(D3D12TestFixture, DescriptorHeap_Create_DSV) {
|
||||
D3D12_DESCRIPTOR_HEAP_DESC heapDesc = {};
|
||||
heapDesc.Type = D3D12_DESCRIPTOR_HEAP_TYPE_DSV;
|
||||
heapDesc.NumDescriptors = 2;
|
||||
@@ -62,7 +58,7 @@ TEST_F(D3D12TestFixture, DescriptorHeap_CreateDSV) {
|
||||
EXPECT_EQ(desc.Type, D3D12_DESCRIPTOR_HEAP_TYPE_DSV);
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, DescriptorHeap_GetHandleIncrementSize) {
|
||||
TEST_F(D3D12TestFixture, DescriptorHeap_Get_HandleIncrementSize) {
|
||||
UINT cbvSrvUavSize = GetDevice()->GetDescriptorHandleIncrementSize(D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV);
|
||||
UINT samplerSize = GetDevice()->GetDescriptorHandleIncrementSize(D3D12_DESCRIPTOR_HEAP_TYPE_SAMPLER);
|
||||
UINT rtvSize = GetDevice()->GetDescriptorHandleIncrementSize(D3D12_DESCRIPTOR_HEAP_TYPE_RTV);
|
||||
|
||||
@@ -3,15 +3,15 @@
|
||||
#include <dxgi1_4.h>
|
||||
#include <windows.h>
|
||||
|
||||
TEST_F(D3D12TestFixture, Device_CreateDevice_Success) {
|
||||
TEST_F(D3D12TestFixture, Device_Create_Success) {
|
||||
ASSERT_NE(GetDevice(), nullptr);
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, Device_GetCommandQueue_Success) {
|
||||
TEST_F(D3D12TestFixture, Device_Get_CommandQueue) {
|
||||
ASSERT_NE(GetCommandQueue(), nullptr);
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, Device_CheckFeatureLevel) {
|
||||
TEST_F(D3D12TestFixture, Device_Get_FeatureLevel) {
|
||||
static const D3D_FEATURE_LEVEL requestedLevels[] = { D3D_FEATURE_LEVEL_12_0 };
|
||||
D3D12_FEATURE_DATA_FEATURE_LEVELS featureLevels = {};
|
||||
featureLevels.NumFeatureLevels = 1;
|
||||
@@ -22,7 +22,7 @@ TEST_F(D3D12TestFixture, Device_CheckFeatureLevel) {
|
||||
EXPECT_EQ(featureLevels.MaxSupportedFeatureLevel, D3D_FEATURE_LEVEL_12_0);
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, Device_GetDescriptorHandleIncrementSize) {
|
||||
TEST_F(D3D12TestFixture, Device_Get_DescriptorHandleIncrementSize) {
|
||||
UINT cbvSrvUavSize = GetDevice()->GetDescriptorHandleIncrementSize(D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV);
|
||||
EXPECT_GT(cbvSrvUavSize, 0);
|
||||
|
||||
@@ -36,7 +36,7 @@ TEST_F(D3D12TestFixture, Device_GetDescriptorHandleIncrementSize) {
|
||||
EXPECT_GT(dsvSize, 0);
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, Device_CheckShaderModelSupport) {
|
||||
TEST_F(D3D12TestFixture, Device_Get_ShaderModelSupport) {
|
||||
D3D12_FEATURE_DATA_SHADER_MODEL shaderModel = {};
|
||||
shaderModel.HighestShaderModel = D3D_SHADER_MODEL_6_0;
|
||||
|
||||
@@ -45,7 +45,7 @@ TEST_F(D3D12TestFixture, Device_CheckShaderModelSupport) {
|
||||
EXPECT_GE(shaderModel.HighestShaderModel, D3D_SHADER_MODEL_6_0);
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, Device_CheckResourceBindingTier) {
|
||||
TEST_F(D3D12TestFixture, Device_Get_ResourceBindingTier) {
|
||||
D3D12_FEATURE_DATA_D3D12_OPTIONS options = {};
|
||||
|
||||
HRESULT hr = GetDevice()->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS, &options, sizeof(options));
|
||||
@@ -53,7 +53,7 @@ TEST_F(D3D12TestFixture, Device_CheckResourceBindingTier) {
|
||||
EXPECT_GE(options.ResourceBindingTier, D3D12_RESOURCE_BINDING_TIER_1);
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, Device_CheckTiledResourcesTier) {
|
||||
TEST_F(D3D12TestFixture, Device_Get_TiledResourcesTier) {
|
||||
D3D12_FEATURE_DATA_D3D12_OPTIONS options = {};
|
||||
|
||||
HRESULT hr = GetDevice()->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS, &options, sizeof(options));
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include "fixtures/D3D12TestFixture.h"
|
||||
#include <Windows.h>
|
||||
|
||||
TEST_F(D3D12TestFixture, Fence_CreateFence_Success) {
|
||||
TEST_F(D3D12TestFixture, Fence_Create_Success) {
|
||||
ASSERT_NE(GetDevice(), nullptr);
|
||||
|
||||
ComPtr<ID3D12Fence> fence;
|
||||
@@ -10,7 +10,7 @@ TEST_F(D3D12TestFixture, Fence_CreateFence_Success) {
|
||||
ASSERT_NE(fence.Get(), nullptr);
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, Fence_GetCompletedValue_Initial) {
|
||||
TEST_F(D3D12TestFixture, Fence_Get_CompletedValue_Initial) {
|
||||
ComPtr<ID3D12Fence> fence;
|
||||
HRESULT hr = GetDevice()->CreateFence(0, D3D12_FENCE_FLAG_NONE, IID_PPV_ARGS(&fence));
|
||||
ASSERT_HRESULT_SUCCEEDED(hr);
|
||||
@@ -18,7 +18,7 @@ TEST_F(D3D12TestFixture, Fence_GetCompletedValue_Initial) {
|
||||
EXPECT_EQ(fence->GetCompletedValue(), 0);
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, Fence_SignalAndWait) {
|
||||
TEST_F(D3D12TestFixture, Fence_Signal_Wait) {
|
||||
ComPtr<ID3D12Fence> fence;
|
||||
HRESULT hr = GetDevice()->CreateFence(0, D3D12_FENCE_FLAG_NONE, IID_PPV_ARGS(&fence));
|
||||
ASSERT_HRESULT_SUCCEEDED(hr);
|
||||
@@ -41,7 +41,7 @@ TEST_F(D3D12TestFixture, Fence_SignalAndWait) {
|
||||
CloseHandle(eventHandle);
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, Fence_SetEventOnCompletion) {
|
||||
TEST_F(D3D12TestFixture, Fence_Set_EventOnCompletion) {
|
||||
ComPtr<ID3D12Fence> fence;
|
||||
HRESULT hr = GetDevice()->CreateFence(0, D3D12_FENCE_FLAG_NONE, IID_PPV_ARGS(&fence));
|
||||
ASSERT_HRESULT_SUCCEEDED(hr);
|
||||
@@ -64,7 +64,7 @@ TEST_F(D3D12TestFixture, Fence_SetEventOnCompletion) {
|
||||
CloseHandle(eventHandle);
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, Fence_MultipleSignals) {
|
||||
TEST_F(D3D12TestFixture, Fence_Signal_Multiple) {
|
||||
ComPtr<ID3D12Fence> fence;
|
||||
HRESULT hr = GetDevice()->CreateFence(0, D3D12_FENCE_FLAG_NONE, IID_PPV_ARGS(&fence));
|
||||
ASSERT_HRESULT_SUCCEEDED(hr);
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
#include "fixtures/D3D12TestFixture.h"
|
||||
|
||||
TEST_F(D3D12TestFixture, PipelineState_Placeholder) {
|
||||
ASSERT_NE(GetDevice(), nullptr);
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, PipelineState_GraphicsPipelineDescDefaults) {
|
||||
TEST_F(D3D12TestFixture, PipelineState_Get_GraphicsPipelineDescDefaults) {
|
||||
D3D12_GRAPHICS_PIPELINE_STATE_DESC psoDesc = {};
|
||||
psoDesc.InputLayout = {};
|
||||
psoDesc.pRootSignature = nullptr;
|
||||
@@ -29,7 +25,7 @@ TEST_F(D3D12TestFixture, PipelineState_GraphicsPipelineDescDefaults) {
|
||||
EXPECT_EQ(psoDesc.NumRenderTargets, 1);
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, PipelineState_ComputePipelineDescDefaults) {
|
||||
TEST_F(D3D12TestFixture, PipelineState_Get_ComputePipelineDescDefaults) {
|
||||
D3D12_COMPUTE_PIPELINE_STATE_DESC psoDesc = {};
|
||||
psoDesc.pRootSignature = nullptr;
|
||||
psoDesc.CS = {};
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
#include "fixtures/D3D12TestFixture.h"
|
||||
|
||||
TEST_F(D3D12TestFixture, RootSignature_Placeholder) {
|
||||
ASSERT_NE(GetDevice(), nullptr);
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, RootSignature_CreateEmptyRootSignature) {
|
||||
TEST_F(D3D12TestFixture, RootSignature_Create_EmptyRootSignature) {
|
||||
D3D12_ROOT_SIGNATURE_DESC rootSigDesc = {};
|
||||
rootSigDesc.NumParameters = 0;
|
||||
rootSigDesc.NumStaticSamplers = 0;
|
||||
@@ -17,7 +13,7 @@ TEST_F(D3D12TestFixture, RootSignature_CreateEmptyRootSignature) {
|
||||
ASSERT_NE(blob.Get(), nullptr);
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, RootSignature_CreateRootSignatureWithCBV) {
|
||||
TEST_F(D3D12TestFixture, RootSignature_Create_WithCBV) {
|
||||
D3D12_ROOT_PARAMETER param = {};
|
||||
param.ParameterType = D3D12_ROOT_PARAMETER_TYPE_CBV;
|
||||
param.Descriptor.ShaderRegister = 0;
|
||||
|
||||
@@ -1,20 +1,16 @@
|
||||
#include "fixtures/D3D12TestFixture.h"
|
||||
|
||||
TEST_F(D3D12TestFixture, Shader_Placeholder) {
|
||||
ASSERT_NE(GetDevice(), nullptr);
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, Shader_GetVertexShaderProfile) {
|
||||
TEST_F(D3D12TestFixture, Shader_Get_VertexShaderProfile) {
|
||||
const char* profile = "vs_6_0";
|
||||
EXPECT_STREQ(profile, "vs_6_0");
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, Shader_GetPixelShaderProfile) {
|
||||
TEST_F(D3D12TestFixture, Shader_Get_PixelShaderProfile) {
|
||||
const char* profile = "ps_6_0";
|
||||
EXPECT_STREQ(profile, "ps_6_0");
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, Shader_GetComputeShaderProfile) {
|
||||
TEST_F(D3D12TestFixture, Shader_Get_ComputeShaderProfile) {
|
||||
const char* profile = "cs_6_0";
|
||||
EXPECT_STREQ(profile, "cs_6_0");
|
||||
}
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
#include "fixtures/D3D12TestFixture.h"
|
||||
|
||||
TEST_F(D3D12TestFixture, Texture_Placeholder) {
|
||||
ASSERT_NE(GetDevice(), nullptr);
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, Texture_CreateTexture2D) {
|
||||
TEST_F(D3D12TestFixture, Texture_Create_2D) {
|
||||
const uint32_t width = 256;
|
||||
const uint32_t height = 256;
|
||||
const DXGI_FORMAT format = DXGI_FORMAT_R8G8B8A8_UNORM;
|
||||
@@ -42,7 +38,7 @@ TEST_F(D3D12TestFixture, Texture_CreateTexture2D) {
|
||||
EXPECT_EQ(desc.Format, format);
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, Texture_CreateTexture3D) {
|
||||
TEST_F(D3D12TestFixture, Texture_Create_3D) {
|
||||
const uint32_t width = 64;
|
||||
const uint32_t height = 64;
|
||||
const uint32_t depth = 64;
|
||||
@@ -77,7 +73,7 @@ TEST_F(D3D12TestFixture, Texture_CreateTexture3D) {
|
||||
EXPECT_EQ(desc.DepthOrArraySize, depth);
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, Texture_CreateTextureWithMipLevels) {
|
||||
TEST_F(D3D12TestFixture, Texture_Create_MultipleMips) {
|
||||
const uint32_t width = 512;
|
||||
const uint32_t height = 512;
|
||||
const uint32_t mipLevels = 5;
|
||||
@@ -110,7 +106,7 @@ TEST_F(D3D12TestFixture, Texture_CreateTextureWithMipLevels) {
|
||||
EXPECT_EQ(desc.MipLevels, mipLevels);
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, Texture_CreateTextureArray) {
|
||||
TEST_F(D3D12TestFixture, Texture_Create_Array) {
|
||||
const uint32_t width = 128;
|
||||
const uint32_t height = 128;
|
||||
const uint32_t arraySize = 4;
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
#include "fixtures/D3D12TestFixture.h"
|
||||
|
||||
TEST_F(D3D12TestFixture, Views_Placeholder) {
|
||||
ASSERT_NE(GetDevice(), nullptr);
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, Views_CreateRTVDescriptorHeap) {
|
||||
TEST_F(D3D12TestFixture, Views_Create_RTVDescriptorHeap) {
|
||||
D3D12_DESCRIPTOR_HEAP_DESC heapDesc = {};
|
||||
heapDesc.Type = D3D12_DESCRIPTOR_HEAP_TYPE_RTV;
|
||||
heapDesc.NumDescriptors = 1;
|
||||
@@ -18,7 +14,7 @@ TEST_F(D3D12TestFixture, Views_CreateRTVDescriptorHeap) {
|
||||
EXPECT_NE(handle.ptr, 0);
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, Views_CreateDSVDescriptorHeap) {
|
||||
TEST_F(D3D12TestFixture, Views_Create_DSVDescriptorHeap) {
|
||||
D3D12_DESCRIPTOR_HEAP_DESC heapDesc = {};
|
||||
heapDesc.Type = D3D12_DESCRIPTOR_HEAP_TYPE_DSV;
|
||||
heapDesc.NumDescriptors = 1;
|
||||
@@ -32,7 +28,7 @@ TEST_F(D3D12TestFixture, Views_CreateDSVDescriptorHeap) {
|
||||
EXPECT_NE(handle.ptr, 0);
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, Views_CreateCBVDescriptorHeap) {
|
||||
TEST_F(D3D12TestFixture, Views_Create_CBVDescriptorHeap) {
|
||||
D3D12_DESCRIPTOR_HEAP_DESC heapDesc = {};
|
||||
heapDesc.Type = D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV;
|
||||
heapDesc.NumDescriptors = 1;
|
||||
@@ -46,7 +42,7 @@ TEST_F(D3D12TestFixture, Views_CreateCBVDescriptorHeap) {
|
||||
EXPECT_NE(handle.ptr, 0);
|
||||
}
|
||||
|
||||
TEST_F(D3D12TestFixture, Views_RTVDescriptorHandleIncrement) {
|
||||
TEST_F(D3D12TestFixture, Views_Get_RTVDescriptorHandleIncrement) {
|
||||
UINT rtvSize = GetDevice()->GetDescriptorHandleIncrementSize(D3D12_DESCRIPTOR_HEAP_TYPE_RTV);
|
||||
|
||||
D3D12_DESCRIPTOR_HEAP_DESC heapDesc = {};
|
||||
|
||||
Reference in New Issue
Block a user