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¶
| Name | Description |
|---|---|
| image | The image to bind. |
| firstLevel | The index of the first level to bind. |
| levels | The number of levels to bind. |
| firstLayer | The index of the first layer to bind. |
| layers | The number of layers to bind. |