Contents

setSamplerState(_:index:)

Binds a sampler state to a sampler state binding slot.

Declaration

func setSamplerState(_ resourceID: MTLResourceID, index bindingIndex: Int)

Parameters

  • resourceID:

    The Mtlresourceid of the Mtlsamplerstate instance to bind.

  • bindingIndex:

    A valid binding index in the sampler binding range. It is an error for this value to match or exceed the value of property Maxsamplerstatebindcount on the descriptor from which you created this argument table.

Mentioned in