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

Configuration options for a texture image download. More...

#include <GREM/graphics/Texture.hpp>

Public Member Functions

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

Public Attributes

Optional< TextureSubresource > subresource {}
 Texture subresource to download.
bool convertFromPremultipliedAlpha = true
 Convert the downloaded image from pre-multiplied to straight alpha.

Detailed Description

Configuration options for a texture image download.

Member Function Documentation

◆ operator==()

bool grem::graphics::TextureImageDownloadOptions::operator== ( const TextureImageDownloadOptions & 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

◆ subresource

Optional<TextureSubresource> grem::graphics::TextureImageDownloadOptions::subresource {}

Texture subresource to download.

Must be a valid subresource of the texture, or an empty optional to download the whole texture.

◆ convertFromPremultipliedAlpha

bool grem::graphics::TextureImageDownloadOptions::convertFromPremultipliedAlpha = true

Convert the downloaded image from pre-multiplied to straight alpha.

Only applies to raw RGBA formats.


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