ID3D11DeviceContext::DrawIndexedInstancedIndirect method (d3d11.h)
Draw indexed, instanced, GPU-generated primitives.
Syntax
void DrawIndexedInstancedIndirect(
[in] ID3D11Buffer *pBufferForArgs,
[in] UINT AlignedByteOffsetForArgs
);
Parameters
[in] pBufferForArgs
Type: ID3D11Buffer*
A pointer to an ID3D11Buffer, which is a buffer containing the GPU-generated primitives.
[in] AlignedByteOffsetForArgs
Type: UINT
A DWORD-aligned byte offset in pBufferForArgs to the start of the GPU generated primitives.
Return value
None
Remarks
When an application creates a buffer that is associated with the ID3D11Buffer interface that pBufferForArgs points to, your 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, your application should call the ID3D11Device::CreateBuffer method, and pass a pointer to a D3D11_BUFFER_DESC in the pDesc parameter.
Windows Phone 8: This API is supported.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | d3d11.h |
Library | D3D11.lib |