Draw instanced, GPU-generated primitives.
void DrawInstancedIndirect( [in] ID3D11Buffer *pBufferForArgs, [in] UINT AlignedByteOffsetForArgs );
- pBufferForArgs [in]
A pointer to an ID3D11Buffer, which is a buffer containing the GPU generated primitives.
- AlignedByteOffsetForArgs [in]
Offset in pBufferForArgs to the start of the GPU generated primitives.
When an application creates a buffer that is associated with the ID3D11Buffer interface that pBufferForArgs points to, the application must set the D3D11_RESOURCE_MISC_DRAWINDIRECT_ARGS flag in the MiscFlags member of the D3D11_BUFFER_DESC structure that describes the buffer. To create the buffer, the application calls the ID3D11Device::CreateBuffer method and in this call passes a pointer to D3D11_BUFFER_DESC in the pDesc parameter.