20 return "ANGLE D3D9 ES2";
22 return "ANGLE D3D11 ES2";
24 return "ANGLE D3D11 ES3";
26 return "ANGLE GL ES2";
28 return "ANGLE GL ES3";
30 return "ANGLE Metal ES2";
32 return "ANGLE Metal ES3";
50 return "Dawn OpenGLES";
59 case ContextType::kDirect3D:
60 case ContextType::kGL:
61 case ContextType::kGLES:
75 case ContextType::kDawn_D3D11:
76 case ContextType::kDawn_D3D12:
77 case ContextType::kDawn_Metal:
78 case ContextType::kDawn_OpenGL:
79 case ContextType::kDawn_OpenGLES:
80 case ContextType::kDawn_Vulkan:
89 return type != ContextType::kMock;
111 case ContextType::kDirect3D:
114 case ContextType::kDawn_D3D11:
115 case ContextType::kDawn_D3D12:
116 case ContextType::kDawn_Metal:
117 case ContextType::kDawn_Vulkan:
118 case ContextType::kDawn_OpenGL:
119 case ContextType::kDawn_OpenGLES:
122 case ContextType::kMock:
140 return BackendApi::kUnsupported;
148 case ContextType::kDawn_D3D11:
149 case ContextType::kDawn_D3D12:
150 case ContextType::kDawn_Metal:
151 case ContextType::kDawn_Vulkan:
152 case ContextType::kDawn_OpenGL:
153 case ContextType::kDawn_OpenGLES:
154 return BackendApi::kDawn;
156 case ContextType::kMock:
157 return BackendApi::kMock;
GrBackendApi ContextTypeBackend(skgpu::ContextType type)
skgpu::BackendApi ContextTypeBackend(skgpu::ContextType type)
bool IsDawnBackend(skgpu::ContextType type)
bool IsNativeBackend(skgpu::ContextType type)
@ 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.
@ kDawn_Vulkan
Dawn on Metal.
@ kVulkan
ANGLE on Metal ES 3 context.
@ 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.
@ kMock
Dawn on OpenGL ES.
const char * ContextTypeName(skgpu::ContextType type)
bool IsRenderingContext(skgpu::ContextType type)