|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
Set of aspects of a texture format. More...
#include <GREM/graphics/Texture.hpp>
Public Member Functions | |
| constexpr | TextureAspects () noexcept=default |
| Construct an empty aspect set. | |
| constexpr | TextureAspects (TextureAspect aspect) |
| Construct an aspect set containing only one specific aspect. | |
| constexpr bool | operator== (const TextureAspects &other) const noexcept=default |
| Compare this aspect set to another for equality. | |
| constexpr bool | empty () const noexcept |
| Check if the aspect set is empty. | |
| constexpr bool | contains (TextureAspect aspect) const noexcept |
| Check if the aspect set contains the given aspect. | |
| constexpr bool | containsAnyOf (TextureAspects aspects) const noexcept |
| Check if the aspect set contains at least one of the given aspects. | |
| constexpr bool | containsAllOf (TextureAspects aspects) const noexcept |
| Check if the aspect set contains all of the given aspects. | |
Static Public Attributes | |
| static const TextureAspects | ALL = ~TextureAspects{} |
| Set containing all possible texture aspects. | |
| static const TextureAspects | DEPTH_STENCIL = TextureAspect::DEPTH | TextureAspect::STENCIL |
| Set containing both the depth and stencil texture aspects. | |
| static const TextureAspects | COLOR_DEPTH_STENCIL = TextureAspect::COLOR | TextureAspect::DEPTH | TextureAspect::STENCIL |
| Set containing the color, depth and stencil texture aspects. | |
Friends | |
| constexpr TextureAspects | operator~ (TextureAspects a) noexcept |
| Get the complement of an aspect set. | |
| constexpr TextureAspects | operator& (TextureAspects a, TextureAspects b) noexcept |
| Get the intersection of two aspect sets. | |
| constexpr TextureAspects | operator| (TextureAspects a, TextureAspects b) noexcept |
| Get the union of two aspect sets. | |
| constexpr TextureAspects | operator^ (TextureAspects a, TextureAspects b) noexcept |
| Get the symmetric difference of two aspect sets. | |
| constexpr TextureAspects & | operator&= (TextureAspects &a, TextureAspects b) noexcept |
| Assign the intersection of two aspect sets to the first set. | |
| constexpr TextureAspects & | operator|= (TextureAspects &a, TextureAspects b) noexcept |
| Assign the union of two aspect sets to the first set. | |
| constexpr TextureAspects & | operator^= (TextureAspects &a, TextureAspects b) noexcept |
| Assign the symmetric difference of two aspect sets to the first set. | |
Set of aspects of a texture format.
|
constexprdefaultnoexcept |
Construct an empty aspect set.
|
inlineconstexpr |
Construct an aspect set containing only one specific aspect.
| aspect | texture aspect to include. |
|
nodiscardconstexprdefaultnoexcept |
Compare this aspect set to another for equality.
| other | the aspect set to compare this one to. |
|
inlinenodiscardconstexprnoexcept |
Check if the aspect set is empty.
|
inlinenodiscardconstexprnoexcept |
Check if the aspect set contains the given aspect.
| aspect | aspect identifier to check for. |
|
inlinenodiscardconstexprnoexcept |
Check if the aspect set contains at least one of the given aspects.
| aspects | aspect set to check for. |
|
inlinenodiscardconstexprnoexcept |
Check if the aspect set contains all of the given aspects.
| aspects | aspect set to check for. |
|
friend |
Get the complement of an aspect set.
| a | the set to invert. |
|
friend |
Get the intersection of two aspect sets.
| a | first aspect set. |
| b | second aspect set. |
|
friend |
Get the union of two aspect sets.
| a | first aspect set. |
| b | second aspect set. |
|
friend |
Get the symmetric difference of two aspect sets.
| a | first aspect set. |
| b | second aspect set. |
|
friend |
Assign the intersection of two aspect sets to the first set.
| a | first aspect set. |
| b | second aspect set. |
|
friend |
Assign the union of two aspect sets to the first set.
| a | first aspect set. |
| b | second aspect set. |
|
friend |
Assign the symmetric difference of two aspect sets to the first set.
| a | first aspect set. |
| b | second aspect set. |
|
inlinestaticconstexpr |
Set containing all possible texture aspects.
|
inlinestaticconstexpr |
Set containing both the depth and stencil texture aspects.
|
inlinestaticconstexpr |
Set containing the color, depth and stencil texture aspects.