Add GetDescriptorHandleIncrementSize to D3D12Device and update main.cpp to use wrapper

This commit is contained in:
2026-03-15 20:31:37 +08:00
parent 3e6388c221
commit 2a5fc4f0d4
5 changed files with 19 additions and 3 deletions

View File

@@ -27,6 +27,8 @@ public:
uint64_t GetSize() const { return GetDesc().Width; }
D3D12_GPU_VIRTUAL_ADDRESS GetGPUVirtualAddress() const { return m_resource->GetGPUVirtualAddress(); }
void UpdateData(const void* data, uint64_t size);
private:
ComPtr<ID3D12Resource> m_resource;
};

View File

@@ -51,6 +51,8 @@ public:
std::vector<AdapterInfo> EnumerateAdapters();
UINT GetDescriptorHandleIncrementSize(DescriptorHeapType type) const;
bool CheckFeatureSupport(D3D12_FEATURE feature, void* featureSupportData, uint32_t featureSupportDataSize);
void SetDeviceRemoved() { m_isDeviceRemoved = true; }