animator.skia.RuntimeShaderBuilder

class animator.skia.RuntimeShaderBuilder

Bases: animator.skia.RuntimeEffectBuilder

__init__(self: animator.skia.RuntimeShaderBuilder, effect: animator.skia.RuntimeEffect) None

Methods

__init__(self, effect)

child(self, name)

children(self)

effect(self)

makeImage(self, resultInfo[, localMatrix, ...])

Create an image from this shader builder with the given resultInfo.

makeShader(self[, localMatrix])

uniform(self, name)

uniforms(self)

child(self: animator.skia.RuntimeEffectBuilder, name: str) animator.skia.RuntimeEffectBuilder.BuilderChild
children(self: animator.skia.RuntimeEffectBuilder) List[animator.skia.RuntimeEffect.ChildPtr]
effect(self: animator.skia.RuntimeEffectBuilder) animator.skia.RuntimeEffect
makeImage(self: animator.skia.RuntimeShaderBuilder, resultInfo: animator.skia.ImageInfo, localMatrix: animator.skia.Matrix = None, mipmapped: bool = False) animator.skia.Image

Create an image from this shader builder with the given resultInfo.

Note

The resultInfo and localMatrix parameters are swapped from the corresponding parameters in the C++ API.

makeShader(self: animator.skia.RuntimeShaderBuilder, localMatrix: animator.skia.Matrix = None) animator.skia.Shader
uniform(self: animator.skia.RuntimeEffectBuilder, name: str) animator.skia.RuntimeEffectBuilder.BuilderUniform
uniforms(self: animator.skia.RuntimeEffectBuilder) animator.skia.Data