8#ifndef GrD3DAMDMemoryAllocator_DEFINED
9#define GrD3DAMDMemoryAllocator_DEFINED
15#pragma clang diagnostic push
16#pragma clang diagnostic ignored "-Wdeprecated-dynamic-exception-spec"
18#include "D3D12MemAlloc.h"
20#pragma clang diagnostic pop
30 D3D12_RESOURCE_STATES initialResourceState,
32 const D3D12_CLEAR_VALUE*)
override;
36 const D3D12_RESOURCE_DESC*,
37 D3D12_RESOURCE_STATES initialResourceState,
38 const D3D12_CLEAR_VALUE*)
override;
42 Alloc(D3D12MA::Allocation* allocation) : fAllocation(allocation) {}
44 fAllocation->Release();
48 D3D12MA::Allocation* fAllocation;
54 D3D12MA::Allocator* fAllocator;
Alloc(D3D12MA::Allocation *allocation)
static sk_sp< GrD3DMemoryAllocator > Make(IDXGIAdapter *adapter, ID3D12Device *device)
gr_cp< ID3D12Resource > createAliasingResource(sk_sp< GrD3DAlloc > &allocation, uint64_t localOffset, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES initialResourceState, const D3D12_CLEAR_VALUE *) override
gr_cp< ID3D12Resource > createResource(D3D12_HEAP_TYPE, const D3D12_RESOURCE_DESC *, D3D12_RESOURCE_STATES initialResourceState, sk_sp< GrD3DAlloc > *allocation, const D3D12_CLEAR_VALUE *) override
~GrD3DAMDMemoryAllocator() override