Example #1
0
        public override IndexBufferBase CreateIndexBuffer(uint indexCount, IndexBufferSize indexSize, IndexBufferMode mode)
        {
            var abstraction = new IndexBuffer(this, mode);

            if (!abstraction.Init(indexCount, indexSize))
            {
                abstraction.Dispose();
                throw new Exception("Failed to create IndexBuffer");
            }
            return(abstraction);
        }
Example #2
0
 public override IndexBufferBase CreateIndexBuffer(uint indexCount, IndexBufferSize indexSize, IndexBufferMode mode)
 {
     throw new NotImplementedException();
 }
Example #3
0
 public abstract IndexBufferBase CreateIndexBuffer(uint indexCount, IndexBufferSize indexSize, IndexBufferMode mode);
Example #4
0
 public override IndexBufferBase CreateIndexBuffer(uint indexCount, IndexBufferSize indexSize, IndexBufferMode mode)
 {
     return(activeDevice.CreateIndexBuffer(indexCount, indexSize, mode));
 }
Example #5
0
 public unsafe bool Init(uint indexCount, IndexBufferSize indexSize)
 {
     this.indexSize = indexSize;
     return(Orbital_Video_D3D12_IndexBuffer_Init(handle, null, indexCount, (uint)indexSize) != 0);
 }