GrBackendRenderTarget

class GrBackendRenderTarget

Methods

MakeGL

__init__

Overloaded function.

backend

dimensions

getBackendFormat

Get the GrBackendFormat for this render target (or an invalid format if this is not valid).

getGLFramebufferInfo

If the backend API is GL, copies a snapshot of the GrGLFramebufferInfo struct into the passed in pointer and returns true.

getMockRenderTargetInfo

If the backend API is Mock, copies a snapshot of the GrMockTextureInfo struct into the passed in pointer and returns true.

getVkImageInfo

If the backend API is Vulkan, copies a snapshot of the GrVkImageInfo struct into the passed in pointer and returns true.

height

isFramebufferOnly

isProtected

isValid

sampleCnt

setVkImageLayout

Anytime the client changes the VkImageLayout of the VkImage captured by this GrBackendRenderTarget, they must call this function to notify Skia of the changed layout.

stencilBits

width

Methods

static GrBackendRenderTarget.MakeGL(width: int, height: int, sampleCnt: int, stencilBits: int, glInfo: GrGLFramebufferInfo) skia.GrBackendRenderTarget
GrBackendRenderTarget.__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: skia.GrBackendRenderTarget) -> None

  2. __init__(self: skia.GrBackendRenderTarget, width: int, height: int, sampleCnt: int, stencilBits: int, glInfo: GrGLFramebufferInfo) -> None

  3. __init__(self: skia.GrBackendRenderTarget, width: int, height: int, vkInfo: GrVkImageInfo) -> None

  4. __init__(self: skia.GrBackendRenderTarget, width: int, height: int, sampleCnt: int, vkInfo: GrVkImageInfo) -> None

  5. __init__(self: skia.GrBackendRenderTarget, width: int, height: int, sampleCnt: int, stencilBits: int, mockInfo: GrMockRenderTargetInfo) -> None

GrBackendRenderTarget.backend(self: skia.GrBackendRenderTarget) skia.GrBackendApi
GrBackendRenderTarget.dimensions(self: skia.GrBackendRenderTarget) skia.ISize
GrBackendRenderTarget.getBackendFormat(self: skia.GrBackendRenderTarget) skia.GrBackendFormat

Get the GrBackendFormat for this render target (or an invalid format if this is not valid).

GrBackendRenderTarget.getGLFramebufferInfo(self: skia.GrBackendRenderTarget, info: GrGLFramebufferInfo) bool

If the backend API is GL, copies a snapshot of the GrGLFramebufferInfo struct into the passed in pointer and returns true. Otherwise returns false if the backend API is not GL.

GrBackendRenderTarget.getMockRenderTargetInfo(self: skia.GrBackendRenderTarget, info: GrMockRenderTargetInfo) bool

If the backend API is Mock, copies a snapshot of the GrMockTextureInfo struct into the passed in pointer and returns true. Otherwise returns false if the backend API is not Mock.

GrBackendRenderTarget.getVkImageInfo(self: skia.GrBackendRenderTarget, info: GrVkImageInfo) bool

If the backend API is Vulkan, copies a snapshot of the GrVkImageInfo struct into the passed in pointer and returns true. This snapshot will set the fImageLayout to the current layout state. Otherwise returns false if the backend API is not Vulkan.

GrBackendRenderTarget.height(self: skia.GrBackendRenderTarget) int
GrBackendRenderTarget.isFramebufferOnly(self: skia.GrBackendRenderTarget) bool
GrBackendRenderTarget.isProtected(self: skia.GrBackendRenderTarget) bool
GrBackendRenderTarget.isValid(self: skia.GrBackendRenderTarget) bool
GrBackendRenderTarget.sampleCnt(self: skia.GrBackendRenderTarget) int
GrBackendRenderTarget.setVkImageLayout(self: skia.GrBackendRenderTarget, layout: VkImageLayout) None

Anytime the client changes the VkImageLayout of the VkImage captured by this GrBackendRenderTarget, they must call this function to notify Skia of the changed layout.

GrBackendRenderTarget.stencilBits(self: skia.GrBackendRenderTarget) int
GrBackendRenderTarget.width(self: skia.GrBackendRenderTarget) int