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); }
public void OffsetIncrement() { const int VerticesCount = 32; const int IndicesCount = 48; var vertices = new VertexPosition2DUV[VerticesCount]; var indices = new short[IndicesCount]; buffer2D.Add(null, vertices, indices); Assert.AreEqual(VerticesCount * vertexSize, buffer2D.VertexOffset); Assert.AreEqual(IndicesCount * sizeof(short), buffer2D.IndexOffset); }