CircularBufferTests Make3DBufferResize 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 Make3DBufferResize()
Examples

[Test, CloseAfterFirstFrame]
public void Make3DBufferResize()
{
    const int VerticesCount = 12288;
    const int IndicesCount = 16384;
    var vertices = new VertexPosition3DUV[VerticesCount];
    var indices = new short[IndicesCount];
    buffer3D.Add(null, vertices, indices);
    Assert.IsFalse(buffer3D.HasDrawn);
    buffer3D.Add(null, vertices, indices);
    Assert.IsTrue(buffer3D.HasDrawn);
}
See Also