![]() |
Paradox Game Engine
v1.0.0 beta06
|
The layout of a vertex buffer with a set of VertexElement. More...
Classes | |
class | Serializer |
Public Member Functions | |
VertexDeclaration (params VertexElement[] elements) | |
Initializes a new instance of the VertexDeclaration class. More... | |
VertexDeclaration (VertexElement[] elements, int instanceCount=0, int vertexStride=0) | |
Initializes a new instance of the VertexDeclaration class. More... | |
IEnumerable < VertexElementWithOffset > | EnumerateWithOffsets () |
Enumerates VertexElement with declared offsets. More... | |
int | CalculateSize () |
Calculate the size of the vertex declaration. More... | |
bool | Equals (VertexDeclaration other) |
override bool | Equals (object obj) |
override int | GetHashCode () |
Static Public Member Functions | |
static implicit | operator VertexDeclaration (VertexElement element) |
Performs an implicit conversion from VertexElement to VertexDeclaration. More... | |
static implicit | operator VertexDeclaration (VertexElement[] elements) |
Performs an implicit conversion from VertexElement[][] to VertexDeclaration. More... | |
Properties | |
VertexElement[] | VertexElements [get] |
Gets the vertex elements. More... | |
int | InstanceCount [get] |
Gets the instance count. More... | |
int | VertexStride [get] |
Gets the vertex stride. More... | |
The layout of a vertex buffer with a set of VertexElement.
Definition at line 16 of file VertexDeclaration.cs.
SiliconStudio.Paradox.Graphics.VertexDeclaration.VertexDeclaration | ( | params VertexElement[] | elements | ) |
Initializes a new instance of the VertexDeclaration class.
elements | The elements. |
Definition at line 32 of file VertexDeclaration.cs.
SiliconStudio.Paradox.Graphics.VertexDeclaration.VertexDeclaration | ( | VertexElement[] | elements, |
int | instanceCount = 0 , |
||
int | vertexStride = 0 |
||
) |
Initializes a new instance of the VertexDeclaration class.
elements | The elements. |
instanceCount | The instance count. |
vertexStride | The vertex stride. |
System.ArgumentNullException | elements |
Definition at line 44 of file VertexDeclaration.cs.
References SiliconStudio.Paradox.Graphics.VertexElement.GetHashCode().
int SiliconStudio.Paradox.Graphics.VertexDeclaration.CalculateSize | ( | ) |
Calculate the size of the vertex declaration.
Definition at line 122 of file VertexDeclaration.cs.
References SiliconStudio.Paradox.Graphics.VertexElement.AppendAligned, and DirectX.size.
IEnumerable<VertexElementWithOffset> SiliconStudio.Paradox.Graphics.VertexDeclaration.EnumerateWithOffsets | ( | ) |
Enumerates VertexElement with declared offsets.
Definition at line 100 of file VertexDeclaration.cs.
References SiliconStudio.Paradox.Graphics.VertexElement.AppendAligned.
bool SiliconStudio.Paradox.Graphics.VertexDeclaration.Equals | ( | VertexDeclaration | other | ) |
Definition at line 144 of file VertexDeclaration.cs.
override bool SiliconStudio.Paradox.Graphics.VertexDeclaration.Equals | ( | object | obj | ) |
Definition at line 151 of file VertexDeclaration.cs.
override int SiliconStudio.Paradox.Graphics.VertexDeclaration.GetHashCode | ( | ) |
Definition at line 159 of file VertexDeclaration.cs.
|
static |
Performs an implicit conversion from VertexElement to VertexDeclaration.
element | The element. |
Definition at line 169 of file VertexDeclaration.cs.
|
static |
Performs an implicit conversion from VertexElement[][] to VertexDeclaration.
elements | The elements. |
Definition at line 179 of file VertexDeclaration.cs.
|
get |
|
get |
|
get |