encode(into:)
Encodes the configured deformation passes into the given command encoder.
Declaration
final func encode(into encoder: any MTLComputeCommandEncoder) throws(LowLevelDeformation.Error)Parameters
- encoder:
A serial Metal compute command encoder.
Discussion
Call input.setVertices(_:offset:semantic:) and output.setVertices(_:offset:semantic:) before calling this method each frame.