|
| ImageDescriptor ()=default |
|
| ImageDescriptor (const ImageDescriptor &descriptor)=default |
|
| ImageDescriptor (ImageDescriptor &&descriptor)=default |
|
| ImageDescriptor (const uint32_t depth, const uint32_t height, const uint32_t width, const ll::ChannelCount channelCount, const ll::ChannelType channelType) |
| Constructs the object. More...
|
|
| ImageDescriptor (const uint32_t depth, const uint32_t height, const uint32_t width, const ll::ChannelCount channelCount, const ll::ChannelType channelType, const ll::ImageUsageFlags usageFlags, const ll::ImageTiling tiling) |
| Constructs the object. More...
|
|
| ~ImageDescriptor ()=default |
|
ImageDescriptor & | operator= (const ImageDescriptor &descriptor)=default |
|
ImageDescriptor & | operator= (ImageDescriptor &&descriptor)=default |
|
ImageDescriptor & | setChannelType (const ll::ChannelType type) noexcept |
| Sets the channel type. More...
|
|
ImageDescriptor & | setChannelCount (const ll::ChannelCount count) noexcept |
| Sets the channel count. More...
|
|
ImageDescriptor & | setWidth (const uint32_t width) noexcept |
| Sets the width. More...
|
|
ImageDescriptor & | setHeight (const uint32_t height) noexcept |
| Sets the height. More...
|
|
ImageDescriptor & | setDepth (const uint32_t depth) noexcept |
| Sets the depth. More...
|
|
ImageDescriptor & | setShape (const ll::vec3ui &shape) noexcept |
| Sets the image shape. More...
|
|
ImageDescriptor & | setUsageFlags (const ll::ImageUsageFlags flags) noexcept |
| Sets the usage flags. More...
|
|
ImageDescriptor & | setUsageFlagsUnsafe (const uint32_t flags) noexcept |
| Sets the usage flags from an integer type. More...
|
|
ImageDescriptor & | setTiling (const ll::ImageTiling tTiling) noexcept |
| Sets the vulkan image tiling. More...
|
|
ll::ChannelType | getChannelType () const noexcept |
| Gets the channel type. More...
|
|
template<typename T = ll::ChannelCount> |
T | getChannelCount () const noexcept |
| Gets the channel count. More...
|
|
uint32_t | getWidth () const noexcept |
| Gets the image width in pixels. More...
|
|
uint32_t | getHeight () const noexcept |
| Gets the image height in pixels. More...
|
|
uint32_t | getDepth () const noexcept |
| Gets the image depth in pixels. More...
|
|
uint64_t | getSize () const noexcept |
| Gets the size in bytes required to store the image. More...
|
|
ll::vec3ui | getShape () const noexcept |
| Gets the shape of the image. More...
|
|
vk::ImageType | getImageType () const noexcept |
| Gets the Vulkan image type. More...
|
|
vk::Format | getFormat () const noexcept |
| Gets the corresponding Vulkan image format. More...
|
|
ll::ImageUsageFlags | getUsageFlags () const noexcept |
| Gets the Vulkan image usage flags. More...
|
|
ll::ImageTiling | getTiling () const noexcept |
| Gets the vulkan image tiling. More...
|
|
uint32_t | getUsageFlagsUnsafe () const noexcept |
| Gets the usage flags casted to an integer type. More...
|
|
Stores all relevant information for creating ll::Image objects.
The following code creates a descriptor for an 4-channel image with 640x480 pixel resolution and 8-bit unsigned int channel type.
Stores all relevant information for creating ll::Image objects.
Definition: ImageDescriptor.h:189
ImageDescriptor & setHeight(const uint32_t height) noexcept
Sets the height.
ImageDescriptor & setWidth(const uint32_t width) noexcept
Sets the width.
ImageDescriptor & setChannelType(const ll::ChannelType type) noexcept
Sets the channel type.
ImageDescriptor & setChannelCount(const ll::ChannelCount count) noexcept
Sets the channel count.