Luna::RHI::DescriptorType

enum DescriptorType : u8
{
    uniform_buffer_view
    read_buffer_view
    read_write_buffer_view
    read_texture_view
    read_write_texture_view
    sampler
}

Specifies the type of descriptors that can be placed in a descriptor set.

Options

  • uniform_buffer_view

    Specifies uniform buffer view, which allows reading data from one uniform buffer. This descriptor is supported in all shaders.

  • read_buffer_view

    Specifies read buffer view, which allows reading data from one structured buffer. This descriptor is supported in all shaders.

  • read_write_buffer_view

    Speciifes read-write buffer view, which allows reading and writing data from one structured buffer. This descriptor is supported in compute shader only.

  • read_texture_view

    Specifies read texture view, which allows reading texture data using pixel coordinates directly or sampling texture data from the texture using samplers. This descriptor is supported in all shaders.

  • read_write_texture_view

    Specifies read-write texture view, which allows reading and writing texture data using pixel coordinates directly. This descriptor is supported in compute shader only.

  • sampler

    Specifies one sampler. This descriptor is supported in all shaders.