Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Functions
GrBackendSemaphores Namespace Reference

Functions

SK_API GrBackendSemaphore MakeMtl (GrMTLHandle event, uint64_t value)
 
SK_API GrMTLHandle GetMtlHandle (const GrBackendSemaphore &)
 
SK_API uint64_t GetMtlValue (const GrBackendSemaphore &)
 
SK_API GrBackendSemaphore MakeVk (VkSemaphore semaphore)
 
SK_API VkSemaphore GetVkSemaphore (const GrBackendSemaphore &)
 

Function Documentation

◆ GetMtlHandle()

GrMTLHandle GrBackendSemaphores::GetMtlHandle ( const GrBackendSemaphore sem)

Definition at line 49 of file GrMtlBackendSemaphore.mm.

49 {
52 SkASSERT(data);
53 return data->event();
54}
static const GrMtlBackendSemaphoreData * get_and_cast_data(const GrBackendSemaphore &sem)
#define SkASSERT(cond)
Definition SkAssert.h:116
GrBackendApi backend() const

◆ GetMtlValue()

uint64_t GrBackendSemaphores::GetMtlValue ( const GrBackendSemaphore sem)

Definition at line 56 of file GrMtlBackendSemaphore.mm.

56 {
59 SkASSERT(data);
60 return data->value();
61}

◆ GetVkSemaphore()

VkSemaphore GrBackendSemaphores::GetVkSemaphore ( const GrBackendSemaphore sem)

Definition at line 43 of file GrVkBackendSemaphore.cpp.

43 {
46 SkASSERT(data);
47 return data->semaphore();
48}
static const GrVkBackendSemaphoreData * get_and_cast_data(const GrBackendSemaphore &sem)

◆ MakeMtl()

GrBackendSemaphore GrBackendSemaphores::MakeMtl ( GrMTLHandle  event,
uint64_t  value 
)

Definition at line 44 of file GrMtlBackendSemaphore.mm.

44 {
47}
static GrBackendSemaphore MakeGrBackendSemaphore(GrBackendApi backend, const SemaphoreData &data)
FlKeyEvent * event

◆ MakeVk()

GrBackendSemaphore GrBackendSemaphores::MakeVk ( VkSemaphore  semaphore)

Definition at line 38 of file GrVkBackendSemaphore.cpp.