#include <MtlMemoryAllocatorImpl.h>
|
static sk_sp< MtlMemoryAllocator > | Make (id< MTLDevice >) |
|
Definition at line 18 of file MtlMemoryAllocatorImpl.h.
◆ ~MtlMemoryAllocatorImpl()
skgpu::MtlMemoryAllocatorImpl::~MtlMemoryAllocatorImpl |
( |
| ) |
|
|
inlineoverride |
◆ Make()
sk_sp< MtlMemoryAllocator > skgpu::MtlMemoryAllocatorImpl::Make |
( |
id< MTLDevice > |
device | ) |
|
|
static |
◆ newBufferWithLength()
id< MTLBuffer > skgpu::MtlMemoryAllocatorImpl::newBufferWithLength |
( |
NSUInteger |
length, |
|
|
MTLResourceOptions |
options, |
|
|
sk_sp< skgpu::MtlAlloc > * |
allocation |
|
) |
| |
|
override |
Definition at line 16 of file MtlMemoryAllocatorImpl.mm.
18 {
19
20 allocation->
reset(
new Alloc());
22}
void reset(T *ptr=nullptr)
id< MTLBuffer > newBufferWithLength(NSUInteger length, MTLResourceOptions options, sk_sp< skgpu::MtlAlloc > *allocation) override
◆ newTextureWithDescriptor()
id< MTLTexture > skgpu::MtlMemoryAllocatorImpl::newTextureWithDescriptor |
( |
MTLTextureDescriptor * |
texDesc, |
|
|
sk_sp< skgpu::MtlAlloc > * |
allocation |
|
) |
| |
|
override |
Definition at line 24 of file MtlMemoryAllocatorImpl.mm.
25 {
26
27 allocation->
reset(
new Alloc());
29}
id< MTLTexture > newTextureWithDescriptor(MTLTextureDescriptor *texDesc, sk_sp< skgpu::MtlAlloc > *allocation) override
The documentation for this class was generated from the following files: