RavEngine
Loading...
Searching...
No Matches
RGL::D3D12DynamicDescriptorHeap< totalCount > Struct Template Reference
Inheritance diagram for RGL::D3D12DynamicDescriptorHeap< totalCount >:
[legend]
Collaboration diagram for RGL::D3D12DynamicDescriptorHeap< totalCount >:
[legend]

Public Types

using index_t = std::remove_const_t< std::make_unsigned_t< decltype(totalCount)> >
 

Public Member Functions

 D3D12DynamicDescriptorHeap (decltype(owningDevice) device, D3D12_DESCRIPTOR_HEAP_TYPE type, D3D12_DESCRIPTOR_HEAP_FLAGS flags)
 
index_t AllocateSingle ()
 
void DeallocateSingle (index_t index)
 

Member Function Documentation

◆ AllocateSingle()

template<uint32_t totalCount = 2048u>
index_t RGL::D3D12DynamicDescriptorHeap< totalCount >::AllocateSingle ( )
inline

Allocate a single descriptor

Returns
Returns the offset into the descriptor heap. We assume that a descriptor will be written to the index that is returned.

◆ DeallocateSingle()

template<uint32_t totalCount = 2048u>
void RGL::D3D12DynamicDescriptorHeap< totalCount >::DeallocateSingle ( index_t  index)
inline

Mark a descriptor as no longer needed.

Parameters
indexthe descriptor to deallocate

The documentation for this struct was generated from the following file: