Microsoft Docs

D3D11_SLOT_DESCRIPTION Structure

Describes the slot used by a Direct3D 11 device.

Syntax

typedef struct D3D11_SLOT_DESCRIPTION {
  DXGI_FORMAT SlotClass;
  UINT        SlotType;
  UINT        SlotBound;
} D3D11_SLOT_DESCRIPTION;

Members

Member Description
SlotClass A DXGI_FORMAT-typed value that specifies the data format of the slot.
SlotType A UINT-typed value that specifies the type of data in the slot. Possible values include:
  • D3D11_SLOT_INPUT_TYPE_VERTEX_DATA
  • D3D11_SLOT_INPUT_TYPE_INDEX_DATA
  • D3D11_SLOT_INPUT_TYPE_CONSTANT_BUFFER
  • D3D11_SLOT_INPUT_TYPE_SHADER_RESOURCE_VIEW
  • D3D11_SLOT_INPUT_TYPE_UNORDERED_ACCESS_VIEW
SlotBound A UINT-typed value that specifies the identifier of the slot. This is typically the index of the buffer or resource.

Remarks

This structure is used by the GetSlotDescription function to retrieve information about a specific slot on the Direct3D 11 device.

Note: The exact values for SlotType might vary slightly depending on the context and the specific hardware capabilities. Always refer to the relevant API documentation for the most up-to-date information.
Tip: Understanding slot descriptions is crucial for correctly binding vertex buffers, index buffers, and shader resources to the Direct3D pipeline. Ensure that the SlotClass and SlotType members accurately reflect the data you are binding to avoid runtime errors.

Requirements

Attribute Value
Minimum supported client Windows 7
Minimum supported server Windows Server 2008 R2
Header d3d11.h
Library d3d11.lib
DLL d3d11.dll

See Also