Skip to content

LiteFX::Rendering::IImage::validateBinding

Validates if the resource can be bound to a descriptor of type. This method is expected to throw, if validation fails.

Synopsis

Declared in <litefx/rendering_api.hpp>

[[dllimport, dllexport]] void validateBinding(
    DescriptorType type,
    UInt32 firstLevel,
    UInt32 levels,
    UInt32 firstLayer,
    UInt32 layers) const;

Parameters

NameDescription
firstLevelThe first mip map level to bind.
levelsThe number of mip map levels to bind.
firstLayerThe first layer to bind.
layersThe number of layers to bind.
typeThe type of the descriptor to validate against.