VertexFormatTests VertexSizeInBytes Method Delta Engine Documentation

Namespace: DeltaEngine.Graphics.Tests
Assembly: DeltaEngine.Graphics.Tests (in DeltaEngine.Graphics.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void VertexSizeInBytes()
Examples

[Test]
public void VertexSizeInBytes()
{
    Assert.AreEqual(16, VertexPosition2DUV.SizeInBytes);
    Assert.AreEqual(12, VertexPosition2DColor.SizeInBytes);
    Assert.AreEqual(20, VertexPosition2DColorUV.SizeInBytes);
    Assert.AreEqual(20, VertexPosition3DUV.SizeInBytes);
    Assert.AreEqual(16, VertexPosition3DColor.SizeInBytes);
    Assert.AreEqual(24, VertexPosition3DColorUV.SizeInBytes);
}
See Also