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)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
source | positional or keyword | Not annotated | No default |
parameters | keyword-only | Not annotated | () |
coordinates | keyword-only | Not annotated | 'local' |
authored_time | keyword-only | Not annotated | False |
seed | keyword-only | Not annotated | False |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
WgslEffectProgram.parameter
WgslEffectProgram.parameter(self, name)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
name | positional or keyword | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.