ComputeGraphComponent
A component that drives a compute graph–based particle simulation on an entity.
Declaration
struct ComputeGraphComponentOverview
Attach this component to any Entity to with a loaded ComputeGraphResource and execute it each frame using Metal compute pipelines. The system automatically creates and manages child entities for each graph output, each carrying its own ModelComponent and material.
var component = ComputeGraphComponent(resource: resource)
entity.components.set(component)Topics
Structures
Initializers
Instance Properties
Instance Methods
fastForward()fastForward(stepCount:stepDeltaTime:)findBufferIndex(port:)firstBufferIndex(type:)isOutputEnabled(_:)pause()play()replaceUniforms(_:)setBuffer(_:bufferOffset:elementCount:at:)setOutputEnabled(_:enabled:)setTexture(_:at:)setTexture(_:port:)setUniformData(_:for:)setUniformValue(_:for:)setUniformValue(_:named:)spawn(element:in:)spawn(elements:in:)step()uniformHandle(named:)