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

Options for saving an image in JPEG format. More...

#include <GREM/resource/Image.hpp>

Public Attributes

ImageSubresource subresource
 Subresource of the image to save.
int quality = 90
 JPEG quality.

Detailed Description

Options for saving an image in JPEG format.

Member Data Documentation

◆ subresource

ImageSubresource grem::resource::ImageSaveJPEGOptions::subresource
Initial value:
{
.layer = 0,
.mipLevel = 0,
}

Subresource of the image to save.

◆ quality

int grem::resource::ImageSaveJPEGOptions::quality = 90

JPEG quality.

Higher values yield better image quality but results in a larger file size. The compression is lossy.


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