Skip to content

Instantly share code, notes, and snippets.

@yorung
Created July 9, 2016 09:23
Show Gist options
  • Select an option

  • Save yorung/257b1670ebf55d9b424d566cc76b991c to your computer and use it in GitHub Desktop.

Select an option

Save yorung/257b1670ebf55d9b424d566cc76b991c to your computer and use it in GitHub Desktop.
[DX12] Create a huge descriptor heap
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