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;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;Parameters¶
| Name | Description |
|---|---|
| type | The type of the descriptor to validate against. |
| elementsPerDescriptor | The number of elements bound to a single descriptor. If this is greater than 1, alignedElementSize must match elementSize. |
| stride | The size of a single structure in bytes for structured buffers, or 0 to treat each buffer element as one structure. |