HAL::MapVertexFormat

HAL::MapVertexFormat
virtual void MapVertexFormat(PrimitiveFillType fill, const VertexFormat* sourceFormat, const VertexFormat** single, const VertexFormat** batch, const VertexFormat** instanced, unsigned meshType) = 0;
Description

MapVertexFormat obtains formats that renderer will use for single, batched and instanced rendering of the specified source format. 

The 'single' argument pointer may be the same as sourceFormat. The 'batch' format may be reported as 0, in which case batching is disabled. The 'instanced' argument format may be reported as 0, in which case instancing is not supported for the specified format.

Parameters
Parameters 
Description 
PrimitiveFillType fill 
The rendering fill style applied to the elements of DP. See PrimitiveFillType
const VertexFormat* sourceFormat 
The source format of the meshes. 
const VertexFormat** single 
Destination format into which vertices are converted for rendering. 
const VertexFormat** batch 
Destination format for the generated batched meshes. 
const VertexFormat** instanced 
Destination format for the instanced rendering of the vertices. 
unsigned meshType 
The type of the mesh to be allocated.