8#ifndef GrD3DCpuDescriptorManager_DEFINED
9#define GrD3DCpuDescriptorManager_DEFINED
21 ID3D12Resource* textureResource);
25 ID3D12Resource* textureResource);
29 ID3D12Resource* bufferResource,
34 unsigned int mostDetailedMip,
35 unsigned int mipLevels);
38 unsigned int mipSlice);
44 unsigned int maxAnisotropy,
45 D3D12_TEXTURE_ADDRESS_MODE addressModeU,
46 D3D12_TEXTURE_ADDRESS_MODE addressModeV);
52 static std::unique_ptr<Heap>
Make(
GrD3DGpu* gpu, D3D12_DESCRIPTOR_HEAP_TYPE
type,
53 unsigned int numDescriptors);
58 return handle.
fHeapID == fHeap->uniqueID();
61 bool canAllocate() {
return fFreeCount > 0; }
64 Heap(std::unique_ptr<GrD3DDescriptorHeap>& heap,
unsigned int numDescriptors)
65 : fHeap(std::move(heap))
66 , fFreeBlocks(numDescriptors)
67 , fFreeCount(numDescriptors) {
68 for (
unsigned int i = 0;
i < numDescriptors; ++
i) {
73 std::unique_ptr<GrD3DDescriptorHeap> fHeap;
75 unsigned int fFreeCount;
80 HeapPool(
GrD3DGpu*, D3D12_DESCRIPTOR_HEAP_TYPE);
86 std::vector<std::unique_ptr<Heap>> fDescriptorHeaps;
87 int fMaxAvailableDescriptors;
88 D3D12_DESCRIPTOR_HEAP_TYPE fHeapType;
91 HeapPool fRTVDescriptorPool;
92 HeapPool fDSVDescriptorPool;
93 HeapPool fShaderViewDescriptorPool;
94 HeapPool fSamplerDescriptorPool;
static SkString resource(SkPDFResourceType type, int index)
GrD3DDescriptorHeap::CPUHandle createUnorderedAccessView(GrD3DGpu *, ID3D12Resource *resource, unsigned int mipSlice)
void recycleSampler(const GrD3DDescriptorHeap::CPUHandle &)
void recycleRenderTargetView(const GrD3DDescriptorHeap::CPUHandle &)
GrD3DDescriptorHeap::CPUHandle createShaderResourceView(GrD3DGpu *, ID3D12Resource *resource, unsigned int mostDetailedMip, unsigned int mipLevels)
GrD3DCpuDescriptorManager(GrD3DGpu *)
GrD3DDescriptorHeap::CPUHandle createDepthStencilView(GrD3DGpu *, ID3D12Resource *textureResource)
GrD3DDescriptorHeap::CPUHandle createConstantBufferView(GrD3DGpu *, ID3D12Resource *bufferResource, size_t offset, size_t size)
GrD3DDescriptorHeap::CPUHandle createSampler(GrD3DGpu *, D3D12_FILTER filter, float maxLOD, unsigned int maxAnisotropy, D3D12_TEXTURE_ADDRESS_MODE addressModeU, D3D12_TEXTURE_ADDRESS_MODE addressModeV)
void recycleDepthStencilView(const GrD3DDescriptorHeap::CPUHandle &)
void recycleShaderView(const GrD3DDescriptorHeap::CPUHandle &)
GrD3DDescriptorHeap::CPUHandle createRenderTargetView(GrD3DGpu *, ID3D12Resource *textureResource)
SK_API sk_sp< SkDocument > Make(SkWStream *dst, const SkSerialProcs *=nullptr, std::function< void(const SkPicture *)> onEndPage=nullptr)
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size