Skip to content

LiteFX::Rendering::DescriptorBinding

Describes a resource binding to a descriptor or descriptor set.

Synopsis

Declared in <litefx/rendering_api.hpp>

struct [[dllimport, dllexport]] DescriptorBinding;

Type Aliases

Data Members

NameDescription
binding The binding point to bind the resource at. If not provided (i.e., std::nullopt), the index within the collection of DescriptorBindings is used.
elements The number of array elements or image layers to bind, starting at firstDescriptor.
firstDescriptor The index of the descriptor in a descriptor array at which binding the resource arrays starts.
firstElement The index of the first array element or image layer to bind, starting at firstDescriptor.
firstLevel If the resource is an image, this describes the first level to be bound.
levels If the resource is an image, this describes the number of levels to be bound.
resource The resource to bind or std::monostate if no resource should be bound.

See Also

IDescriptorSet

IDescriptorSetLayout