Example #1
0
        public override IndexBufferBase CreateIndexBuffer(uint[] indices, IndexBufferMode mode)
        {
            var abstraction = new IndexBuffer(this, mode);

            if (!abstraction.Init(indices))
            {
                abstraction.Dispose();
                throw new Exception("Failed to create IndexBuffer");
            }
            return(abstraction);
        }
Example #2
0
 public override IndexBufferBase CreateIndexBuffer(uint[] indices, IndexBufferMode mode)
 {
     throw new NotImplementedException();
 }
Example #3
0
 public override IndexBufferBase CreateIndexBuffer(uint indexCount, IndexBufferSize indexSize, IndexBufferMode mode)
 {
     throw new NotImplementedException();
 }
Example #4
0
 public abstract IndexBufferBase CreateIndexBuffer(uint[] indices, IndexBufferMode mode);
Example #5
0
 public abstract IndexBufferBase CreateIndexBuffer(uint indexCount, IndexBufferSize indexSize, IndexBufferMode mode);
Example #6
0
 public override IndexBufferBase CreateIndexBuffer(uint[] indices, IndexBufferMode mode)
 {
     return(activeDevice.CreateIndexBuffer(indices, mode));
 }
Example #7
0
 public override IndexBufferBase CreateIndexBuffer(uint indexCount, IndexBufferSize indexSize, IndexBufferMode mode)
 {
     return(activeDevice.CreateIndexBuffer(indexCount, indexSize, mode));
 }
Example #8
0
 public IndexBuffer(Device device, IndexBufferMode mode)
     : base(device)
 {
     deviceD3D12 = device;
     handle      = Orbital_Video_D3D12_IndexBuffer_Create(device.handle, mode);
 }
Example #9
0
 private static extern IntPtr Orbital_Video_D3D12_IndexBuffer_Create(IntPtr device, IndexBufferMode mode);
Example #10
0
 public IndexBuffer(Device device, IndexBufferMode mode)
     : base(device)
 {
     deviceVulkan = device;
     handle       = Orbital_Video_Vulkan_IndexBuffer_Create(device.handle, mode);
 }