Contents

floatArray(_:)

Returns an argument value defined by the provided array of floating point numbers. When passed to an MSL function it will convert to a device const float *ptr, int count pair of parameters.

Declaration

static func floatArray(_ array: [Float]) -> Shader.Argument

See Also

Creating argument values