Home -> IGraphicsDevice -> DrawLimits

Description

The DrawLimits structure reports information on limits an IGraphicsDevice object has which relate to the draw process, as returned by the GetDrawLimits method.

Members

Name Type Description
Public member maxVertexCountPerDraw uint32_t
Reports the maximum number of vertices which can be drawn by an IRenderableNode object. Buffers containing a larger number of vertices than this limit may be bound, but where a vertex count is specified manually using the SetVertexCount method, or where the vertex count is inferred automatically from the bound IVertexAttribute or IIndexAttribute objects, the vertex count must not exceed this limit.
Public member maxIndexValue uint32_t
Reports the maximum 32-bit index value which is valid to use in an IIndexAttribute which is bound to an IRenderableNode object. Note that the special primitive restart index, as returned by the GetPrimitiveRestartValue method, is expected to be outside this limit. Also note that this limit is not reporting the maximum number of indices which may be drawn. Index values are not required to start at 0, and this limit specifies the maximum numeric value that may be used. If only a single index value is supplied to a draw operation, but that index value exceeds this stated maximum, it is not supported.
Public member maxTextureResourcesPerDraw uint32_t
Reports the maximum number of textures which can be read from cuncurrently in a single draw call / shader execution.
Public member maxResourcesPerDraw uint32_t
Reports the maximum number of resources which be used cuncurrently in a single draw call / shader execution. Resources include textures, state buffers and data arrays.

See also