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

Path and semantic type pair that uniquely identifies a texture handle. More...

#include <TextureIdentity.h>

Collaboration diagram for Engine::Assets::Textures::TextureIdentityKey:

Public Member Functions

bool empty () const
 Returns true when the key has no path.
bool operator== (const TextureIdentityKey &other) const
 Compares both normalized path and semantic texture type.

Public Attributes

std::string normalizedPath
 Normalized texture path.
TextureType type = TextureType::Unknown
 Semantic texture type.

Detailed Description

Path and semantic type pair that uniquely identifies a texture handle.

Definition at line 30 of file TextureIdentity.h.

Member Function Documentation

◆ empty()

bool Engine::Assets::Textures::TextureIdentityKey::empty ( ) const
inlinenodiscard

Returns true when the key has no path.

Definition at line 38 of file TextureIdentity.h.

References normalizedPath.

◆ operator==()

bool Engine::Assets::Textures::TextureIdentityKey::operator== ( const TextureIdentityKey & other) const
inline

Compares both normalized path and semantic texture type.

Definition at line 46 of file TextureIdentity.h.

References normalizedPath, and type.

Member Data Documentation

◆ normalizedPath

std::string Engine::Assets::Textures::TextureIdentityKey::normalizedPath

Normalized texture path.

Definition at line 32 of file TextureIdentity.h.

Referenced by empty(), and operator==().

◆ type

TextureType Engine::Assets::Textures::TextureIdentityKey::type = TextureType::Unknown

Semantic texture type.

Definition at line 33 of file TextureIdentity.h.

Referenced by operator==().


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