Example #1
0
        public void IndexBuffer_Write_Test()
        {
            var ib = new IndexBuffer(Device);

            Assert.IsTrue(ib.Write(new short[] { 1, 2, 3 }));
            Assert.IsNotNull(ib.RawBuffer);
            Assert.AreEqual(3, ib.Count);

            Assert.IsTrue(ib.Write(new short[] { 2, 1 }));
            Assert.AreEqual(5, ib.Count);
        }
Example #2
0
 public void IndexBuffer_Constructor_Test()
 {
     var ib = new IndexBuffer(Device);
 }