#include <GrD3DDescriptorHeap.h>
Definition at line 17 of file GrD3DDescriptorHeap.h.
◆ ~GrD3DDescriptorHeap()
GrD3DDescriptorHeap::~GrD3DDescriptorHeap |
( |
| ) |
|
|
default |
◆ GrD3DDescriptorHeap()
GrD3DDescriptorHeap::GrD3DDescriptorHeap |
( |
const gr_cp< ID3D12DescriptorHeap > & |
heap, |
|
|
unsigned int |
handleIncrementSize |
|
) |
| |
|
protected |
Definition at line 28 of file GrD3DDescriptorHeap.cpp.
35}
D3D12_GPU_DESCRIPTOR_HANDLE fGPUHeapStart
size_t handleIncrementSize()
gr_cp< ID3D12DescriptorHeap > fHeap
D3D12_CPU_DESCRIPTOR_HANDLE fCPUHeapStart
size_t fHandleIncrementSize
◆ descriptorHeap()
ID3D12DescriptorHeap * GrD3DDescriptorHeap::descriptorHeap |
( |
| ) |
const |
|
inline |
◆ GenID()
static uint32_t GrD3DDescriptorHeap::GenID |
( |
| ) |
|
|
inlinestaticprotected |
Definition at line 61 of file GrD3DDescriptorHeap.h.
61 {
62 static std::atomic<uint32_t> nextID{1};
64 do {
65 id = nextID++;
68 }
static constexpr uint32_t SK_InvalidUniqueID
◆ getCPUHandle()
◆ getGPUHandle()
◆ getIndex() [1/2]
size_t GrD3DDescriptorHeap::getIndex |
( |
const CPUHandle & |
handle | ) |
|
|
inline |
◆ getIndex() [2/2]
size_t GrD3DDescriptorHeap::getIndex |
( |
const GPUHandle & |
handle | ) |
|
|
inline |
◆ handleIncrementSize()
size_t GrD3DDescriptorHeap::handleIncrementSize |
( |
| ) |
|
|
inline |
◆ Make()
std::unique_ptr< GrD3DDescriptorHeap > GrD3DDescriptorHeap::Make |
( |
GrD3DGpu * |
gpu, |
|
|
D3D12_DESCRIPTOR_HEAP_TYPE |
type, |
|
|
unsigned int |
numDescriptors, |
|
|
D3D12_DESCRIPTOR_HEAP_FLAGS |
flags |
|
) |
| |
|
static |
Definition at line 11 of file GrD3DDescriptorHeap.cpp.
14 {
15 D3D12_DESCRIPTOR_HEAP_DESC heapDesc = {};
17 heapDesc.NumDescriptors = numDescriptors;
18 heapDesc.Flags =
flags;
19
20 ID3D12DescriptorHeap* heap;
21 gpu->
device()->CreateDescriptorHeap(&heapDesc, IID_PPV_ARGS(&heap));
22
23 return std::unique_ptr<GrD3DDescriptorHeap>(
25 gpu->
device()->GetDescriptorHandleIncrementSize(
type)));
26}
GrD3DDescriptorHeap(const gr_cp< ID3D12DescriptorHeap > &, unsigned int handleIncrementSize)
ID3D12Device * device() const
FlutterSemanticsFlag flags
◆ uniqueID()
uint32_t GrD3DDescriptorHeap::uniqueID |
( |
| ) |
const |
|
inline |
◆ fCPUHeapStart
D3D12_CPU_DESCRIPTOR_HANDLE GrD3DDescriptorHeap::fCPUHeapStart |
|
protected |
◆ fGPUHeapStart
D3D12_GPU_DESCRIPTOR_HANDLE GrD3DDescriptorHeap::fGPUHeapStart |
|
protected |
◆ fHandleIncrementSize
size_t GrD3DDescriptorHeap::fHandleIncrementSize |
|
protected |
◆ fHeap
gr_cp<ID3D12DescriptorHeap> GrD3DDescriptorHeap::fHeap |
|
protected |
◆ fUniqueID
uint32_t GrD3DDescriptorHeap::fUniqueID |
|
protected |
The documentation for this class was generated from the following files: