Skip to content

LiteFX::Rendering::DescriptorBinding::texture

Creates a descriptor binding for an image.

Synopsis

Declared in <litefx/rendering_api.hpp>

[[dllimport, nodiscard, dllexport]] constexpr static DescriptorBinding texture(
    IImage const& image,
    UInt32 firstLevel = 0,
    UInt32 levels = 0,
    UInt32 firstLayer = 0,
    UInt32 layers = 0) noexcept;

Return Value

The descriptor binding.

Note

The return value should not be discarded.

Parameters

NameDescription
imageThe image to bind.
firstLevelThe index of the first level to bind.
levelsThe number of levels to bind.
firstLayerThe index of the first layer to bind.
layersThe number of layers to bind.