pub enum Form {
Gen,
GenResource,
Map,
Warp,
Displace,
Blur,
Custom,
Raster,
Object,
Render3D,
Particles,
Sim,
}Expand description
How an op participates in code generation.
Variants§
Gen
g_<fn>(ctx, o): produces a color from a position.
GenResource
g_<fn>(ctx, o, T): like Gen, sampling an external resource texture.
Map
f_<fn>(ctx, inputs..., o): combines inputs evaluated at the same ctx.
Warp
w_<fn>(ctx, o): remaps the context its single input is evaluated in.
Displace
Evaluates map at ctx, then source at a displaced ctx.
Blur
Multi-tap op that must read materialized textures (blur).
Custom
Agent-written Slang. Inputs are materialized and sampled freely.
Raster
Vector geometry rasterized by the GPU coverage rasterizer (paths, text). Absorbs downstream transforms so geometry stays sharp.
Object
Scene data (meshes, lights, cameras): not an image. Consumed by
render3d.
Render3D
Renders connected 3D objects into an image.
Particles
Deterministic particle system drawn as sprites.
Sim
Stateful simulation stepped once per frame (fluid, feedback): materialized, with its own persistent state textures.