GrBackendApi

class GrBackendApi

Possible 3D APIs that may be used by Ganesh.

Members:

kOpenGL

kVulkan

kMetal

kDirect3D

kMock :

Mock is a backend that does not draw anything. It is used for unit tests and to measure CPU overhead.

kOpenGL_GrBackend :

Added here to support the legacy GrBackend enum value and clients who referenced it using kOpenGL_GrBackend.

Methods

__init__

Attributes

kDirect3D

kMetal

kMock

kOpenGL

kOpenGL_GrBackend

kVulkan

name

value

Methods

GrBackendApi.__init__(self: skia.GrBackendApi, value: int) None

Attributes

GrBackendApi.kDirect3D = <GrBackendApi.kDirect3D: 3>
GrBackendApi.kMetal = <GrBackendApi.kMetal: 2>
GrBackendApi.kMock = <GrBackendApi.kMock: 4>
GrBackendApi.kOpenGL = <GrBackendApi.kOpenGL: 0>
GrBackendApi.kOpenGL_GrBackend = <GrBackendApi.kOpenGL: 0>
GrBackendApi.kVulkan = <GrBackendApi.kVulkan: 1>
GrBackendApi.name
GrBackendApi.value