Vertex layouts are completely customizable and describe the data structure of a vertex; it essentially replaces the flexible vertex format (FVF) system used in DirectX 9.
A vertex layout is used to describe the format that a mesh stores its vertices in; this format must also map to the struct you use for input to your vertex shader.
You can use the DX11 GET VERTEX LAYOUT BY FVF function to obtain a vertex layout that maps to the perhaps more readily recognizable FVF formats.
DX11 CREATE VERTEX LAYOUT : Return Dword = DX11 CREATE VERTEX LAYOUT()
DX11 DELETE VERTEX LAYOUT : DX11 DELETE VERTEX LAYOUT vertLayout
DX11 VERTEX LAYOUT EXISTS : Return Boolean = DX11 VERTEX LAYOUT EXISTS(vertLayout)
DX11 GET VERTEX LAYOUT BY FVF : Return Dword = DX11 GET VERTEX LAYOUT BY FVF(fvf)
DX11 ADD VERTEX LAYOUT ELEMENT : DX11 ADD VERTEX LAYOUT ELEMENT vertLayout, semanticName, [semanticIndex], format
DX11 GET VERTEX LAYOUT SIZE : Return Dword = DX11 GET VERTEX LAYOUT SIZE(vertLayout)
DX11 GET VERTEX LAYOUT NUM ELEMENTS : Return Dword = DX11 GET VERTEX LAYOUT NUM ELEMENTS(vertLayout)
DX11 GET VERTEX LAYOUT ELEMENT OFFSET : Return Dword = DX11 GET VERTEX LAYOUT ELEMENT OFFSET(vertLayout, semanticName, [semanticId])
DX11 FINALIZE VERTEX LAYOUT : DX11 FINALIZE VERTEX LAYOUT vertLayout
DX11 CREATE VERTEX : Return Dword vertex = DX11 CREATE VERTEX(vertLayout)
DX11 SET VERTEX INTEGER : DX11 SET VERTEX INTEGER vertex, semanticName, [semanticIndex], offset, value
DX11 SET VERTEX FLOAT : DX11 SET VERTEX FLOAT vertex, semanticName, [semanticIndex], offset, value
DX11 SET VERTEX BYTE : DX11 SET VERTEX BYTE vertex, semanticName, [semanticIndex], offset, value
DX11 SET VERTEX WORD : DX11 SET VERTEX WORD vertex, semanticName, [semanticIndex], offset, value
DX11 SET VERTEX DWORD : DX11 SET VERTEX DWORD vertex, semanticName, [semanticIndex], offset, value
DX11 SET VERTEX VECTOR2 : DX11 SET VERTEX VECTOR2 vertex, semanticName, [semanticIndex], offset, vector
DX11 SET VERTEX VECTOR3 : DX11 SET VERTEX VECTOR3 vertex, semanticName, [semanticIndex], offset, vector
DX11 SET VERTEX VECTOR4 : DX11 SET VERTEX VECTOR4 vertex, semanticName, [semanticIndex], offset, vector
DX11 SET VERTEX MATRIX : DX11 SET VERTEX MATRIX vertex, semanticName, [semanticIndex], offset, matrix
DX11 GET VERTEX INTEGER : Return Integer = DX11 GET VERTEX INTEGER(vertex, semanticName, [semanticIndex], offset)
DX11 GET VERTEX FLOAT : Return Float = DX11 GET VERTEX FLOAT(vertex, semanticName, [semanticIndex], offset)
DX11 GET VERTEX BYTE : Return Byte = DX11 GET VERTEX BYTE(vertex, semanticName, [semanticIndex], offset)
DX11 GET VERTEX WORD : Return Word = DX11 GET VERTEX WORD(vertex, semanticName, [semanticIndex], offset)
DX11 GET VERTEX DWORD : Return Dword = DX11 GET VERTEX DWORD(vertex, semanticName, [semanticIndex], offset)
DX11 GET VERTEX VECTOR2 : DX11 GET VERTEX VECTOR2 vertex, semanticName, [semanticIndex], offset, vector
DX11 GET VERTEX VECTOR3 : DX11 GET VERTEX VECTOR3 vertex, semanticName, [semanticIndex], offset, vector
DX11 GET VERTEX VECTOR4 : DX11 GET VERTEX VECTOR4 vertex, semanticName, [semanticIndex], offset, vector
DX11 GET VERTEX MATRIX : DX11 GET VERTEX MATRIX vertex, semanticName, [semanticIndex], offset, matrix
DX11 GET VERTEX SIZE : Return Dword = DX11 GET VERTEX SIZE(vertex)
DX11 COPY VERTEX BUFFER DATA : DX11 COPY VERTEX BUFFER DATA vertex, ptr
DX11 GET DEFAULT VERTEX LAYOUT : Return Dword = DX11 GET DEFAULT VERTEX LAYOUT()
|