Vulkan Schnee 0.0.1 (22840dc8)
High-performance rendering engine
Loading...
Searching...
No Matches
Engine::Core::TextureStorage Struct Reference

Texture asset entry paired with its descriptor index. More...

#include <AssetManager.h>

Collaboration diagram for Engine::Core::TextureStorage:

Public Member Functions

template<typename T>
bool operator> (const T &other)
 Compares texture storage entries by descriptor index.
template<typename T>
bool operator< (const T &other)
 Compares texture storage entries by descriptor index.

Public Attributes

uint32_t index = 0u
 Descriptor or storage index assigned to the texture.
std::shared_ptr< Assets::Texture > texture = nullptr
 Managed texture asset.

Detailed Description

Texture asset entry paired with its descriptor index.

Definition at line 156 of file AssetManager.h.

Member Function Documentation

◆ operator<()

template<typename T>
bool Engine::Core::TextureStorage::operator< ( const T & other)
inline

Compares texture storage entries by descriptor index.

Parameters
otherEntry-like object with an index member.
Returns
True when this entry index is lower.

Definition at line 180 of file AssetManager.h.

References index.

◆ operator>()

template<typename T>
bool Engine::Core::TextureStorage::operator> ( const T & other)
inline

Compares texture storage entries by descriptor index.

Parameters
otherEntry-like object with an index member.
Returns
True when this entry index is greater.

Definition at line 169 of file AssetManager.h.

References index.

Member Data Documentation

◆ index

uint32_t Engine::Core::TextureStorage::index = 0u

Descriptor or storage index assigned to the texture.

Definition at line 158 of file AssetManager.h.

Referenced by operator<(), and operator>().

◆ texture

std::shared_ptr<Assets::Texture> Engine::Core::TextureStorage::texture = nullptr

Managed texture asset.

Definition at line 161 of file AssetManager.h.


The documentation for this struct was generated from the following file:
  • /workspace/magerbeton/gl3-vulkan/code/Engine/include/Engine/Mesh/AssetManager.h