Image view structure used as source when writing the image data to a hardware texture.
More...
#include <ImageFlags.h>
Image view structure used as source when writing the image data to a hardware texture.
- See also
- MutableImageView
-
ConvertImageBuffer
-
RenderSystem::CreateTexture
-
RenderSystem::WriteTexture
◆ ImageView() [1/3]
| LLGL::ImageView::ImageView |
( |
| ) |
|
|
default |
◆ ImageView() [2/3]
| LLGL::ImageView::ImageView |
( |
ImageFormat | format, |
|
|
DataType | dataType, |
|
|
const void * | data, |
|
|
std::size_t | dataSize, |
|
|
std::uint32_t | rowStride = 0, |
|
|
std::uint32_t | layerStride = 0 ) |
|
inline |
Constructor to initialize all attributes.
◆ ImageView() [3/3]
Explicitly constructs the immutable image view from a mutable image view, effectively downgrading its mutability.
◆ data
| const void* LLGL::ImageView::data = nullptr |
Read-only pointer to the image data.
◆ dataSize
| std::size_t LLGL::ImageView::dataSize = 0 |
Specifies the size (in bytes) of the image data. This is primarily used for compressed images and serves for robustness.
◆ dataType
◆ format
◆ layerStride
| std::uint32_t LLGL::ImageView::layerStride = 0 |
Specifies the stride (in bytes) between two array layers or volume slices of the image data.
- Note
- Only supported with image conversion functions.
◆ rowStride
| std::uint32_t LLGL::ImageView::rowStride = 0 |
Specifies the stride (in bytes) between two rows of the image data.
- Note
- Only supported with: Vulkan, OpenGL, Direct3D 11, Direct3D 12.
The documentation for this struct was generated from the following file: