Skip to content

LiteFX::Rendering::IBuffer::validateBinding

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

Synopses

Declared in <litefx/rendering_api.hpp>

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

[[dllimport, dllexport]] virtual void validateBinding(DescriptorType type) const override;

» more...

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

[[dllimport, dllexport]] void validateBinding(
    DescriptorType type,
    UInt32 elementsPerDescriptor,
    UInt32 stride) const;

» more...

Parameters

NameDescription
typeThe type of the descriptor to validate against.
elementsPerDescriptorThe number of elements bound to a single descriptor. If this is greater than 1, alignedElementSize must match elementSize.
strideThe size of a single structure in bytes for structured buffers, or 0 to treat each buffer element as one structure.