Add GetDescriptorHandleIncrementSize to D3D12Device and update main.cpp to use wrapper
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user