Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
GrD3DDescriptorTableManager Class Reference

#include <GrD3DDescriptorTableManager.h>

Public Member Functions

 GrD3DDescriptorTableManager (GrD3DGpu *)
 
sk_sp< GrD3DDescriptorTablecreateShaderViewTable (GrD3DGpu *, unsigned int count)
 
sk_sp< GrD3DDescriptorTablecreateSamplerTable (GrD3DGpu *, unsigned int count)
 
void prepForSubmit (GrD3DGpu *gpu)
 

Detailed Description

Definition at line 45 of file GrD3DDescriptorTableManager.h.

Constructor & Destructor Documentation

◆ GrD3DDescriptorTableManager()

GrD3DDescriptorTableManager::GrD3DDescriptorTableManager ( GrD3DGpu gpu)

Definition at line 12 of file GrD3DDescriptorTableManager.cpp.

13 : fShaderViewDescriptorPool(gpu, D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV)
14 , fSamplerDescriptorPool(gpu, D3D12_DESCRIPTOR_HEAP_TYPE_SAMPLER) {}

Member Function Documentation

◆ createSamplerTable()

sk_sp< GrD3DDescriptorTable > GrD3DDescriptorTableManager::createSamplerTable ( GrD3DGpu gpu,
unsigned int  count 
)

Definition at line 22 of file GrD3DDescriptorTableManager.cpp.

23 {
24 sk_sp<GrD3DDescriptorTable> table = fSamplerDescriptorPool.allocateTable(gpu, size);
25 return table;
26}
SI F table(const skcms_Curve *curve, F v)

◆ createShaderViewTable()

sk_sp< GrD3DDescriptorTable > GrD3DDescriptorTableManager::createShaderViewTable ( GrD3DGpu gpu,
unsigned int  count 
)

Definition at line 17 of file GrD3DDescriptorTableManager.cpp.

17 {
18 sk_sp<GrD3DDescriptorTable> table = fShaderViewDescriptorPool.allocateTable(gpu, size);
19 return table;
20}

◆ prepForSubmit()

void GrD3DDescriptorTableManager::prepForSubmit ( GrD3DGpu gpu)

Definition at line 28 of file GrD3DDescriptorTableManager.cpp.

28 {
29 fShaderViewDescriptorPool.prepForSubmit(gpu);
30 fSamplerDescriptorPool.prepForSubmit(gpu);
31}

The documentation for this class was generated from the following files: