Contents

image(_:)

Returns an argument value defined by the provided image. When passed to an MSL function it will convert to a texture2d<half> value. Currently only one image parameter is supported per Shader instance.

Declaration

static func image(_ image: Image) -> Shader.Argument

See Also

Creating argument values