#include <MtlSharedContext.h>
Definition at line 27 of file MtlSharedContext.h.
◆ ~MtlSharedContext()
skgpu::graphite::MtlSharedContext::~MtlSharedContext |
( |
| ) |
|
|
override |
◆ device()
id< MTLDevice > skgpu::graphite::MtlSharedContext::device |
( |
| ) |
const |
|
inline |
◆ Make()
Definition at line 22 of file MtlSharedContext.mm.
23 {
24 if (@available(macOS 10.15, iOS 13.0, tvOS 13.0, *)) {
25
26 } else {
27 SKGPU_LOG_E(
"Skia's Graphite backend no longer supports this OS version.");
28#ifdef SK_BUILD_FOR_IOS
29 SKGPU_LOG_E(
"Minimum supported version is iOS/tvOS 13.0.");
30#else
31 SKGPU_LOG_E(
"Minimum supported version is MacOS 10.15.");
32#endif
33 return nullptr;
34 }
35
36 sk_cfp<id<MTLDevice>>
device = sk_ret_cfp((id<MTLDevice>)(context.fDevice.get()));
37
39
40
43 SkDEBUGFAIL(
"No supplied Metal memory allocator and unable to create one internally.");
44 return nullptr;
45 }
46
50}
#define SKGPU_LOG_E(fmt,...)
#define SkDEBUGFAIL(message)
static sk_sp< MtlMemoryAllocator > Make(id< MTLDevice >)
skgpu::MtlMemoryAllocator * memoryAllocator() const
id< MTLDevice > device() const
const Caps * caps() const
◆ makeResourceProvider()
std::unique_ptr< ResourceProvider > skgpu::graphite::MtlSharedContext::makeResourceProvider |
( |
SingleOwner * |
singleOwner, |
|
|
uint32_t |
recorderID, |
|
|
size_t |
resourceBudget |
|
) |
| |
|
overridevirtual |
◆ memoryAllocator()
skgpu::MtlMemoryAllocator * skgpu::graphite::MtlSharedContext::memoryAllocator |
( |
| ) |
const |
|
inline |
◆ mtlCaps()
const MtlCaps & skgpu::graphite::MtlSharedContext::mtlCaps |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: