Contents

setTexture(_:index:)

Binds a texture to the texture argument table, allowing compute kernels to access its data on the GPU.

Declaration

func setTexture(_ texture: (any MTLTexture)?, index: Int)

Parameters

  • texture:

    An Mtltexture instance to bind to the texture argument table.

  • index:

    The index the texture binds to in the texture argument table.

See Also

Binding textures