8#ifndef ContextType_DEFINED
9#define ContextType_DEFINED
GrBackendApi ContextTypeBackend(skgpu::ContextType type)
skgpu::BackendApi ContextTypeBackend(skgpu::ContextType type)
bool IsDawnBackend(skgpu::ContextType type)
bool IsNativeBackend(skgpu::ContextType type)
static const int kContextTypeCount
@ kDawn_OpenGLES
Dawn on OpenGL.
@ kDawn_Metal
Dawn on Direct3D12.
@ kANGLE_GL_ES2
ANGLE on Direct3D11 OpenGL ES 3 context.
@ kDawn_D3D12
Dawn on Direct3D11.
@ kANGLE_GL_ES3
ANGLE on OpenGL OpenGL ES 2 context.
@ kANGLE_D3D11_ES2
ANGLE on Direct3D9 OpenGL ES 2 context.
@ kLastContextType
Mock context that does not draw.
@ kDawn_Vulkan
Dawn on Metal.
@ kDawn_OpenGL
Dawn on Vulkan.
@ kDawn_D3D11
Direct3D 12.
@ kANGLE_D3D11_ES3
ANGLE on Direct3D11 OpenGL ES 2 context.
@ kANGLE_D3D9_ES2
OpenGL ES context.
@ kANGLE_Metal_ES2
ANGLE on OpenGL OpenGL ES 3 context.
@ kANGLE_Metal_ES3
ANGLE on Metal ES 2 context.
const char * ContextTypeName(skgpu::ContextType type)
bool IsRenderingContext(skgpu::ContextType type)