Luna::RHI::BufferUsageFlag

enum BufferUsageFlag : u16
{
    copy_source= 0x01
    copy_dest= 0x02
    uniform_buffer= 0x04
    read_buffer= 0x08
    read_write_buffer= 0x10
    vertex_buffer= 0x20
    index_buffer= 0x40
    indirect_buffer= 0x80
}

Specifies possible usages for one IBuffer object.

Options

  • copy_source

    Allows this resource to be bound as copy source.

  • copy_dest

    Allows this resource to be bound as copy destination.

  • uniform_buffer

    Allows this resource to be bound to a uniform buffer view.

  • read_buffer

    Allows this resource to be bound to a read buffer view.

  • read_write_buffer

    Allows this resource to be bound to a read-write buffer view.

  • vertex_buffer

    Allows this resource to be bound as a vertex buffer.

  • index_buffer

    Allows this resource to be bound as a index buffer.

  • indirect_buffer

    Allows this resource to be bound as a buffer providing indirect draw arguments.