예제 #1
0
        public override ConstantBufferBase CreateConstantBuffer <T>(T initialData, ConstantBufferMode mode)
        {
            var abstraction = new ConstantBuffer(this, mode);

            if (!abstraction.Init <T>(initialData))
            {
                abstraction.Dispose();
                throw new Exception("Failed to create ConstantBuffer");
            }
            return(abstraction);
        }
예제 #2
0
 public override ConstantBufferBase CreateConstantBuffer <T>(T initialData, ConstantBufferMode mode)
 {
     throw new NotImplementedException();
 }
예제 #3
0
 public override ConstantBufferBase CreateConstantBuffer(int size, ConstantBufferMode mode)
 {
     throw new NotImplementedException();
 }
예제 #4
0
 public ConstantBuffer(Device device, ConstantBufferMode mode)
     : base(device)
 {
     deviceVulkan = device;
     handle       = Orbital_Video_Vulkan_ConstantBuffer_Create(device.handle, mode);
 }
예제 #5
0
 private static extern IntPtr Orbital_Video_Vulkan_ConstantBuffer_Create(IntPtr device, ConstantBufferMode mode);
 public ConstantBuffer(Device device, ConstantBufferMode mode)
     : base(device)
 {
     deviceD3D12 = device;
     handle      = Orbital_Video_D3D12_ConstantBuffer_Create(device.handle, mode);
 }
예제 #7
0
 public abstract ConstantBufferBase CreateConstantBuffer <T>(T initialData, ConstantBufferMode mode) where T : struct;
예제 #8
0
 public abstract ConstantBufferBase CreateConstantBuffer(int size, ConstantBufferMode mode);
예제 #9
0
 public abstract ConstantBufferBase CreateConstantBuffer <T>(ConstantBufferMode mode) where T : struct;
예제 #10
0
 public override ConstantBufferBase CreateConstantBuffer <T>(T initialData, ConstantBufferMode mode)
 {
     return(activeDevice.CreateConstantBuffer <T>(initialData, mode));
 }
예제 #11
0
 public override ConstantBufferBase CreateConstantBuffer <T>(ConstantBufferMode mode)
 {
     return(activeDevice.CreateConstantBuffer <T>(mode));
 }
예제 #12
0
 public override ConstantBufferBase CreateConstantBuffer(int size, ConstantBufferMode mode)
 {
     return(activeDevice.CreateConstantBuffer(size, mode));
 }