跳转到内容
查看源码

memory 写入(memory)自动生成

只能在 scan 模式中使用:按步骤顺序写 memory 端口。

返回 函数 需要能力
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.

需要能力: field.write