Contents

setTexture(_:at:)

Binds a texture to the slot at the given index.

Declaration

final func setTexture(_ texture: LowLevelTextureResource, at index: Int) throws(LowLevelRenderContextError)

Parameters

  • texture:

    The texture resource to bind to the slot.

  • index:

    The slot index within the argument table’s texture array.

Discussion

See Also

Accessing textures