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

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