Generates an index buffer suited for use with the Geometry Shader including adjacency information.

HRESULT GenerateGSAdjacency(
   _In_reads_(nFaces*3) const uint16_t* indices, _In_ size_t nFaces,
   _In_reads_(nVerts) const uint32_t* pointRep,
   _In_reads_(nFaces*3) const uint32_t* adjacency, _In_ size_t nVerts, 
    _Out_writes_(nFaces*6) uint16_t* indicesAdj );

HRESULT GenerateGSAdjacency(
   _In_reads_(nFaces*3) const uint32_t* indices, _In_ size_t nFaces,
   _In_reads_(nVerts) const uint32_t* pointRep,
   _In_reads_(nFaces*3) const uint32_t* adjacency, _In_ size_t nVerts,
   _Out_writes_(nFaces*6) uint32_t* indicesAdj );

Parameters

indicesAdj: This is an index buffer for use with Geometry Shader (D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST_ADJ).

Note that indices and indicesAdj cannot be the same buffer (i.e. in-place generation is not supported).

Remarks

These functions assume the triangular mesh description, pointrep, and adjacency are valid. See Mesh cleanup and validation

Further Reading

http://msdn.microsoft.com/en-us/library/windows/desktop/bb205124.aspx

Last edited Jun 11, 2014 at 6:28 AM by walbourn, version 3