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

Configuration options for an ArrayAtlasPacker. More...

#include <GREM/resource/ArrayAtlasPacker.hpp>

Public Member Functions

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

Public Attributes

uint32_t initialResolution = 128
 Initial width of the square atlas region, in pixels.
uint32_t initialDepth = 1
 Initial number of array layers in the atlas.
uint32_t padding = 0
 Empty space to reserve between inserted rectangles, in pixels.
uint32_t alignment = 1
 Align padded rectangles to a multiple of this number of pixels.

Detailed Description

Configuration options for an ArrayAtlasPacker.

Member Function Documentation

◆ operator==()

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

◆ initialResolution

uint32_t grem::resource::ArrayAtlasPackerOptions::initialResolution = 128

Initial width of the square atlas region, in pixels.

Warning
Must be positive.

◆ initialDepth

uint32_t grem::resource::ArrayAtlasPackerOptions::initialDepth = 1

Initial number of array layers in the atlas.

Warning
Must be positive.

◆ padding

uint32_t grem::resource::ArrayAtlasPackerOptions::padding = 0

Empty space to reserve between inserted rectangles, in pixels.

◆ alignment

uint32_t grem::resource::ArrayAtlasPackerOptions::alignment = 1

Align padded rectangles to a multiple of this number of pixels.

Warning
Must be a power of 2.

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