On this page

WgslEffectProgram

from noon import WgslEffectProgram

Source-derived class. Host availability is not inferred from this listing. See reference scope.

Bases: _Immutable. Declared members follow; inherited and dynamically attached members are not expanded.

Prepare trusted WGSL once; reuse its immutable source and checked schema.

shade(NoonShaderInput, NoonShaderParameters) returns straight encoded RGB
and a coverage multiplier. Coordinates: local (+Y up normalized bounds),
scene (+Y up), or pixels (top-left origin). Optional time is authored seconds.
Module globals NoonGpuUniform, noon_uniform, noon_source, noon_unit,
vs_fullscreen and fs_sample are reserved by this ABI.
Composed groups require scene or pixels coordinates; local coordinates
require intrinsic object bounds.
Source point morphs are unsupported; use Rotate for rigid rotation rather
than animate.rotate, which requests point correspondence.

WgslEffectProgram.__init__

WgslEffectProgram.__init__(self, source, *, parameters=(), coordinates='local', authored_time=False, seed=False)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
sourcepositional or keywordNot annotatedNo default
parameterskeyword-onlyNot annotated()
coordinateskeyword-onlyNot annotated'local'
authored_timekeyword-onlyNot annotatedFalse
seedkeyword-onlyNot annotatedFalse

Return annotation: Not annotated

No docstring declared here. Consult the source and host reference.

Source declaration

WgslEffectProgram.parameter

WgslEffectProgram.parameter(self, name)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
namepositional or keywordNot annotatedNo default

Return annotation: Not annotated

No docstring declared here. Consult the source and host reference.

Source declaration