GrBackendRenderTarget

class GrBackendRenderTarget

Methods

MakeGL

MakeGL(width: int, height: int, sampleCnt: int, stencilBits: int, glInfo: GrGLFramebufferInfo) -> skia.GrBackendRenderTarget

__init__

__init__(*args, **kwargs) Overloaded function.

backend

backend(self: skia.GrBackendRenderTarget) -> skia.GrBackendApi

dimensions

dimensions(self: skia.GrBackendRenderTarget) -> skia.ISize

getBackendFormat

getBackendFormat(self: skia.GrBackendRenderTarget) -> skia.GrBackendFormat

getGLFramebufferInfo

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

getMockRenderTargetInfo

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

getVkImageInfo

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

height

height(self: skia.GrBackendRenderTarget) -> int

isFramebufferOnly

isFramebufferOnly(self: skia.GrBackendRenderTarget) -> bool

isProtected

isProtected(self: skia.GrBackendRenderTarget) -> bool

isValid

isValid(self: skia.GrBackendRenderTarget) -> bool

sampleCnt

sampleCnt(self: skia.GrBackendRenderTarget) -> int

setVkImageLayout

setVkImageLayout(self: skia.GrBackendRenderTarget, layout: VkImageLayout) -> None

stencilBits

stencilBits(self: skia.GrBackendRenderTarget) -> int

width

width(self: skia.GrBackendRenderTarget) -> int

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