예제 #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);
        }
예제 #2
0
 public override IndexBufferBase CreateIndexBuffer(uint[] indices, IndexBufferMode mode)
 {
     throw new NotImplementedException();
 }
예제 #3
0
 public override IndexBufferBase CreateIndexBuffer(uint indexCount, IndexBufferSize indexSize, IndexBufferMode mode)
 {
     throw new NotImplementedException();
 }
예제 #4
0
 public abstract IndexBufferBase CreateIndexBuffer(uint[] indices, IndexBufferMode mode);
예제 #5
0
 public abstract IndexBufferBase CreateIndexBuffer(uint indexCount, IndexBufferSize indexSize, IndexBufferMode mode);
예제 #6
0
 public override IndexBufferBase CreateIndexBuffer(uint[] indices, IndexBufferMode mode)
 {
     return(activeDevice.CreateIndexBuffer(indices, mode));
 }
예제 #7
0
 public override IndexBufferBase CreateIndexBuffer(uint indexCount, IndexBufferSize indexSize, IndexBufferMode mode)
 {
     return(activeDevice.CreateIndexBuffer(indexCount, indexSize, mode));
 }
예제 #8
0
 public IndexBuffer(Device device, IndexBufferMode mode)
     : base(device)
 {
     deviceD3D12 = device;
     handle      = Orbital_Video_D3D12_IndexBuffer_Create(device.handle, mode);
 }
예제 #9
0
 private static extern IntPtr Orbital_Video_D3D12_IndexBuffer_Create(IntPtr device, IndexBufferMode mode);
예제 #10
0
 public IndexBuffer(Device device, IndexBufferMode mode)
     : base(device)
 {
     deviceVulkan = device;
     handle       = Orbital_Video_Vulkan_IndexBuffer_Create(device.handle, mode);
 }