Skip to content
View source

Memory builtinsGenerated

The builtins of kind memory, as the compiler’s own table lists them.

Returns Function Requires
T put (memory: Rows<T>, index: Int, value: T) +4 field.write
put(memory: Rows<T>, index: Int, value: T) -> T
put(memory: Grid<T>, at: Vec2, value: T) -> T
put(memory: Grid<T>, at: IVec2, value: T) -> T
put(memory: Volume<T>, at: Vec3, value: T) -> T
put(memory: Volume<T>, at: IVec3, value: T) -> T

Writes an element of a memory port in step order (scan only; from the entry or a function with the memory as a parameter); an address outside is dropped, never clamped. Yields the value written.

Requires: field.write