#include <GrMtlSemaphore.h>
Definition at line 21 of file GrMtlSemaphore.h.
◆ ~GrMtlEvent()
GrMtlEvent::~GrMtlEvent |
( |
| ) |
|
|
inlineoverride |
◆ freeGPUData()
void GrMtlEvent::freeGPUData |
( |
| ) |
const |
|
inlineoverridevirtual |
Must be implemented by any subclasses. Deletes any GPU data associated with this resource
Implements GrManagedResource.
Definition at line 44 of file GrMtlSemaphore.h.
44 {
45 if (@available(macOS 10.14, iOS 12.0, tvOS 12.0, *)) {
46 fMtlEvent = nil;
47 }
48 }
◆ ios()
id< MTLEvent > GrMtlEvent::ios |
( |
12. |
0 | ) |
|
◆ Make()
Definition at line 19 of file GrMtlSemaphore.mm.
19 {
20 if (@available(macOS 10.14, iOS 12.0, tvOS 12.0, *)) {
21 id<MTLEvent>
event = [gpu->
device() newEvent];
23 } else {
24 return nullptr;
25 }
26}
id< MTLDevice > device() const
◆ MakeWrapped()
Definition at line 28 of file GrMtlSemaphore.mm.
28 {
29
30
31 if (@available(macOS 10.14, iOS 12.0, tvOS 12.0, *)) {
32 id<MTLEvent>
mtlEvent = (__bridge_transfer id<MTLEvent>)
event;
34 } else {
35 return nullptr;
36 }
37}
id< MTLEvent > mtlEvent() const SK_API_AVAILABLE(macos(10.14)
◆ mtlEvent()
id< MTLEvent > GrMtlEvent::mtlEvent |
( |
| ) |
const |
◆ tvos()
id< MTLEvent > GrMtlEvent::tvos |
( |
12. |
0 | ) |
|
|
inline |
The documentation for this class was generated from the following files: