Add Phase 4 tests for DescriptorHeap, Shader, RootSignature, PipelineState, Views

- DescriptorHeap: CBV_SRV_UAV, Sampler, RTV, DSV, HandleIncrementSize
- Shader: Vertex/Pixel/Compute profiles
- RootSignature: Empty, with CBV parameter
- PipelineState: Graphics/Compute pipeline desc defaults
- Views: RTV, DSV, CBV descriptor heaps, handle increment
- All 54 tests pass
This commit is contained in:
2026-03-17 04:04:57 +08:00
parent 3f8805cde8
commit 19b33a3061
5 changed files with 225 additions and 5 deletions

View File

@@ -1,5 +1,20 @@
#include "fixtures/D3D12TestFixture.h"
TEST_F(D3D12TestFixture, Shader_Placeholder) {
ASSERT_TRUE(true);
ASSERT_NE(GetDevice(), nullptr);
}
TEST_F(D3D12TestFixture, Shader_GetVertexShaderProfile) {
const char* profile = "vs_6_0";
EXPECT_STREQ(profile, "vs_6_0");
}
TEST_F(D3D12TestFixture, Shader_GetPixelShaderProfile) {
const char* profile = "ps_6_0";
EXPECT_STREQ(profile, "ps_6_0");
}
TEST_F(D3D12TestFixture, Shader_GetComputeShaderProfile) {
const char* profile = "cs_6_0";
EXPECT_STREQ(profile, "cs_6_0");
}