diff options
| author | Yong He <yonghe@outlook.com> | 2021-04-05 13:31:05 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-05 13:31:05 -0700 |
| commit | 086ecf41fa21138899960bb9805bc8ced91690f0 (patch) | |
| tree | c98af81ffc28371a9334e71987a85f9e88bce678 /tools/gfx/d3d12/descriptor-heap-d3d12.cpp | |
| parent | dd662f5cda97e7a6720ef526509a772a06112d4a (diff) | |
Transient root shader object. (#1782)
Diffstat (limited to 'tools/gfx/d3d12/descriptor-heap-d3d12.cpp')
| -rw-r--r-- | tools/gfx/d3d12/descriptor-heap-d3d12.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/gfx/d3d12/descriptor-heap-d3d12.cpp b/tools/gfx/d3d12/descriptor-heap-d3d12.cpp index 382fc3219..4533683fd 100644 --- a/tools/gfx/d3d12/descriptor-heap-d3d12.cpp +++ b/tools/gfx/d3d12/descriptor-heap-d3d12.cpp @@ -13,6 +13,8 @@ D3D12DescriptorHeap::D3D12DescriptorHeap(): Result D3D12DescriptorHeap::init(ID3D12Device* device, int size, D3D12_DESCRIPTOR_HEAP_TYPE type, D3D12_DESCRIPTOR_HEAP_FLAGS flags) { + m_device = device; + D3D12_DESCRIPTOR_HEAP_DESC srvHeapDesc = {}; srvHeapDesc.NumDescriptors = size; srvHeapDesc.Flags = flags; @@ -21,7 +23,6 @@ Result D3D12DescriptorHeap::init(ID3D12Device* device, int size, D3D12_DESCRIPTO m_descriptorSize = device->GetDescriptorHandleIncrementSize(type); m_totalSize = size; - return SLANG_OK; } |
