Contents

makeArgumentTable(descriptor:buffers:textures:)

Creates an argument table that binds the provided buffer slices and textures.

Declaration

func makeArgumentTable(descriptor: LowLevelArgumentTable.Descriptor, buffers: [LowLevelBufferSlice], textures: [LowLevelTextureResource]) throws -> LowLevelArgumentTable

Parameters

  • descriptor:

    The argument table layout describing expected buffer and texture slots.

  • buffers:

    The buffer slices to bind, in slot order.

  • textures:

    The texture resources to bind, in slot order.

Return Value

A newly created LowLevelArgumentTable.

Discussion

The descriptor must match the argumentTableDescriptor of the corresponding material function. The counts and sizes of buffers and textures must match the slots declared in the descriptor.

See Also

Creating pipeline state