Skip to content

LiteFX::Rendering::DescriptorBinding::writableTexture

Creates a descriptor binding for a writable image.

Synopsis

Declared in <litefx/rendering_api.hpp>

[[dllimport, nodiscard, dllexport]] constexpr static DescriptorBinding writableTexture(
    IImage const& image,
    UInt32 level = 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.
levelThe index of the level to bind.
firstLayerThe index of the first layer to bind.
layersThe number of layers to bind.