Replace depth buffer creation with D3D12Texture wrapper

This commit is contained in:
2026-03-15 19:54:00 +08:00
parent 632cba821d
commit 38e23e45c4
3 changed files with 38 additions and 29 deletions

View File

@@ -19,6 +19,7 @@ public:
bool InitializeFromExisting(ID3D12Resource* resource);
bool InitializeFromData(ID3D12Device* device, ID3D12GraphicsCommandList* commandList,
const void* pixelData, uint32_t width, uint32_t height, DXGI_FORMAT format);
bool InitializeDepthStencil(ID3D12Device* device, uint32_t width, uint32_t height, DXGI_FORMAT format = DXGI_FORMAT_D24_UNORM_S8_UINT);
void Shutdown();
ID3D12Resource* GetResource() const { return m_resource.Get(); }