Created
July 9, 2016 09:23
-
-
Save yorung/257b1670ebf55d9b424d566cc76b991c to your computer and use it in GitHub Desktop.
[DX12] Create a huge descriptor heap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| static const UINT maxSrvs = 1024; | |
| ComPtr<ID3D12DescriptorHeap> srvHeap; | |
| const D3D12_DESCRIPTOR_HEAP_DESC srvHeapDesc = { D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV, maxSrvs, D3D12_DESCRIPTOR_HEAP_FLAG_SHADER_VISIBLE }; | |
| device->CreateDescriptorHeap(&srvHeapDesc, IID_PPV_ARGS(&srvHeap)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment