GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::resource::ImageOptions Struct Reference

Options for loading an image. More...

#include <GREM/resource/Image.hpp>

Public Member Functions

constexpr bool operator== (const ImageOptions &other) const =default
 Compare these options to another set of options for equality.

Public Attributes

Optional< ImageType > requiredType {}
 If set, require the loaded image to have this type.
Optional< ImageFormat > requiredFormat {}
 If set, require the loaded image to have or be converted to this format.
Extent3D maxImageDimensions
 Maximum width, height and depth of the loaded image.
size_t maxImageSizeInBytes = (uint64_t{8'589'934'592ull} <= uint64_t{Limits<size_t>::MAX}) ? static_cast<size_t>(uint64_t{8'589'934'592ull}) : size_t{2'147'483'648ull}
 Maximum size in bytes of the loaded image data.

Detailed Description

Options for loading an image.

Member Function Documentation

◆ operator==()

bool grem::resource::ImageOptions::operator== ( const ImageOptions & other) const
nodiscardconstexprdefault

Compare these options to another set of options for equality.

Parameters
otherthe options to compare these to.
Returns
true if the options are equal, false otherwise.

Member Data Documentation

◆ requiredType

Optional<ImageType> grem::resource::ImageOptions::requiredType {}

If set, require the loaded image to have this type.

◆ requiredFormat

Optional<ImageFormat> grem::resource::ImageOptions::requiredFormat {}

If set, require the loaded image to have or be converted to this format.

◆ maxImageDimensions

Extent3D grem::resource::ImageOptions::maxImageDimensions
Initial value:
{
.width = 16384,
.height = 16384,
.depth = 2048,
}

Maximum width, height and depth of the loaded image.

◆ maxImageSizeInBytes

size_t grem::resource::ImageOptions::maxImageSizeInBytes = (uint64_t{8'589'934'592ull} <= uint64_t{Limits<size_t>::MAX}) ? static_cast<size_t>(uint64_t{8'589'934'592ull}) : size_t{2'147'483'648ull}

Maximum size in bytes of the loaded image data.


The documentation for this struct was generated from the following file: