Descriptor for ll::ImageView objects.
More...
#include <ImageViewDescriptor.h>
Descriptor for ll::ImageView objects.
The following code creates a descriptor for a sampled image using nearest filtering and unnormalized coordinates. The repeat address mode is used for pixels outside the image boundaries.
Descriptor for ll::ImageView objects.
Definition: ImageViewDescriptor.h:41
ImageViewDescriptor & setIsSampled(bool isSampled) noexcept
Sets whether or not the image view will be sampled.
ImageViewDescriptor & setAddressMode(ll::ImageAddressMode addressMode) noexcept
Sets the address mode to all image axes.
ImageViewDescriptor & setFilterMode(ll::ImageFilterMode filterMode) noexcept
Sets the filtering mode.
ImageViewDescriptor & setNormalizedCoordinates(bool normalizedCoordinates) noexcept
Sets whether or not the image view will use normalized coordinates.
◆ ImageViewDescriptor() [1/4]
ll::ImageViewDescriptor::ImageViewDescriptor |
( |
| ) |
|
|
default |
◆ ImageViewDescriptor() [2/4]
◆ ImageViewDescriptor() [3/4]
◆ ImageViewDescriptor() [4/4]
◆ ~ImageViewDescriptor()
ll::ImageViewDescriptor::~ImageViewDescriptor |
( |
| ) |
|
|
default |
◆ getAddressModeU()
Gets the address mode for the U axis.
- Returns
- The address mode.
◆ getAddressModeV()
Gets the address mode for the V axis.
- Returns
- The address mode.
◆ getAddressModeW()
Gets the address mode for the W axis.
- Returns
- The address mode.
◆ getFilterMode()
Gets the filter mode.
- Returns
- The filter mode.
◆ getVkSamplerCreateInfo()
vk::SamplerCreateInfo ll::ImageViewDescriptor::getVkSamplerCreateInfo |
( |
| ) |
const |
|
noexcept |
◆ isNormalizedCoordinates()
bool ll::ImageViewDescriptor::isNormalizedCoordinates |
( |
| ) |
const |
|
noexcept |
Determines if normalized coordinates are used for this image view.
- Returns
- True if normalized coordinates, False otherwise.
◆ isSampled()
bool ll::ImageViewDescriptor::isSampled |
( |
| ) |
const |
|
noexcept |
Determines if the image view is sampled.
- Returns
- True if sampled, False otherwise.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ setAddressMode() [1/2]
Sets the address mode to all image axes.
- Parameters
-
[in] | addressMode | The address mode |
- Returns
- A reference to this object.
◆ setAddressMode() [2/2]
Sets the address mode to a given image axis.
- Parameters
-
[in] | axis | The axis |
[in] | addressMode | The address mode |
- Returns
- A reference to this object.
◆ setFilterMode()
Sets the filtering mode.
- Parameters
-
[in] | filterMode | The filter mode |
- Returns
- A reference to this object.
◆ setIsSampled()
Sets whether or not the image view will be sampled.
- Parameters
-
[in] | isSampled | Indicates if sampled |
- Returns
- A reference to this object.
◆ setNormalizedCoordinates()
ImageViewDescriptor& ll::ImageViewDescriptor::setNormalizedCoordinates |
( |
bool |
normalizedCoordinates | ) |
|
|
noexcept |
Sets whether or not the image view will use normalized coordinates.
- Parameters
-
[in] | normalizedCoordinates | The normalized coordinates. |
- Returns
- A reference to this object.
The documentation for this class was generated from the following file: