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

Subresource selection of a texture. More...

#include <GREM/graphics/Texture.hpp>

Public Member Functions

constexpr bool operator== (const TextureSubresource &other) const =default
 Compare this subresource selection to another for equality.

Public Attributes

TextureAspects aspects = TextureAspects::ALL
 Set of texture aspects.
uint32_t layer = 0
 Layer index in the texture.
uint32_t mipLevel = 0
 Mip level index in the texture.

Detailed Description

Subresource selection of a texture.

Member Function Documentation

◆ operator==()

bool grem::graphics::TextureSubresource::operator== ( const TextureSubresource & other) const
nodiscardconstexprdefault

Compare this subresource selection to another for equality.

Parameters
otherthe selection to compare this one to.
Returns
true if the selections are equal, false otherwise.

Member Data Documentation

◆ aspects

TextureAspects grem::graphics::TextureSubresource::aspects = TextureAspects::ALL

Set of texture aspects.

◆ layer

uint32_t grem::graphics::TextureSubresource::layer = 0

Layer index in the texture.

◆ mipLevel

uint32_t grem::graphics::TextureSubresource::mipLevel = 0

Mip level index in the texture.


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