LLGL 0.05 Beta
Loading...
Searching...
No Matches
ImageFlags.h File Reference
#include <LLGL/Export.h>
#include <LLGL/Format.h>
#include <LLGL/Tags.h>
#include <LLGL/RenderSystemFlags.h>
#include <LLGL/TextureFlags.h>
#include <LLGL/Container/DynamicArray.h>
#include <memory>
#include <cstdint>
#include <cstddef>

Classes

struct  LLGL::MutableImageView
 Mutable image view structure used as destination when reading the image data from a hardware texture. More...
struct  LLGL::ImageView
 Image view structure used as source when writing the image data to a hardware texture. More...

Namespaces

namespace  LLGL

Functions

LLGL_EXPORT std::size_t LLGL::ConvertImageBuffer (const ImageView &srcImageView, const MutableImageView &dstImageView, const Extent3D &extent, unsigned threadCount=0, bool copyUnchangedImage=false, std::uint32_t depthMask=~0u, std::uint32_t stencilMask=~0u)
 Converts the image format and data type of the source image (only uncompressed color formats).
LLGL_EXPORT std::size_t LLGL::ConvertImageBuffer (const ImageView &srcImageView, const MutableImageView &dstImageView, unsigned threadCount=0, bool copyUnchangedImage=false)
 Converts the image format and data type of the source image (only uncompressed color formats).
LLGL_EXPORT DynamicByteArray LLGL::ConvertImageBuffer (const ImageView &srcImageView, ImageFormat dstFormat, DataType dstDataType, const Extent3D &extent, unsigned threadCount=0)
 Converts the image format and data type of the source image (only uncompressed color formats) and returns the new generated image buffer.
LLGL_EXPORT DynamicByteArray LLGL::ConvertImageBuffer (const ImageView &srcImageView, ImageFormat dstFormat, DataType dstDataType, unsigned threadCount=0)
 Converts the image format and data type of the source image (only uncompressed color formats) and returns the new generated image buffer.
LLGL_EXPORT DynamicByteArray LLGL::DecompressImageBufferToRGBA8UNorm (Format compressedFormat, const ImageView &srcImageView, const Extent2D &extent, unsigned threadCount=0)
 Decompresses the specified image buffer to RGBA format with 8-bit unsigned normalized integers.
LLGL_EXPORT void LLGL::CopyImageBufferRegion (const MutableImageView &dstImageView, const Offset3D &dstOffset, std::uint32_t dstRowStride, std::uint32_t dstLayerStride, const ImageView &srcImageView, const Offset3D &srcOffset, std::uint32_t srcRowStride, std::uint32_t srcLayerStride, const Extent3D &extent)
 Copies an image buffer region from the source buffer to the destination buffer.
LLGL_EXPORT DynamicByteArray LLGL::GenerateImageBuffer (ImageFormat format, DataType dataType, std::size_t imageSize, const float fillColor[4])
 Generates an image buffer with the specified fill data for each pixel.