CoriEngine
Loading...
Searching...
No Matches
Cori::Graphics::Texture2D::Descriptor Class Reference

Texture2D Descriptor meant to be used with AssetManager only. More...

#include <Texture.hpp>

Classes

struct  Hasher

Public Types

using AssetType = Texture2D

Public Member Functions

constexpr Descriptor (std::string name, std::filesystem::path imagePath)
 Constructs a descriptor.
uint32_t GetRuntimeID () const
constexpr bool operator== (const Descriptor &other) const

Public Attributes

const std::filesystem::path m_ImagePath
const std::string m_Name

Detailed Description

Texture2D Descriptor meant to be used with AssetManager only.

Definition at line 104 of file Texture.hpp.

Member Typedef Documentation

◆ AssetType

Constructor & Destructor Documentation

◆ Descriptor()

Cori::Graphics::Texture2D::Descriptor::Descriptor ( std::string name,
std::filesystem::path imagePath )
inlineconstexpr

Constructs a descriptor.

Parameters
nameName to be used in AssetManager logging.
imagePathPath to the image that will be used to create the Texture2D.

Definition at line 111 of file Texture.hpp.

Member Function Documentation

◆ GetRuntimeID()

uint32_t Cori::Graphics::Texture2D::Descriptor::GetRuntimeID ( ) const
inlinenodiscard

Definition at line 119 of file Texture.hpp.

◆ operator==()

bool Cori::Graphics::Texture2D::Descriptor::operator== ( const Descriptor & other) const
inlineconstexpr

Definition at line 121 of file Texture.hpp.

Here is the call graph for this function:

Member Data Documentation

◆ m_ImagePath

const std::filesystem::path Cori::Graphics::Texture2D::Descriptor::m_ImagePath

Definition at line 131 of file Texture.hpp.

◆ m_Name

const std::string Cori::Graphics::Texture2D::Descriptor::m_Name

Definition at line 132 of file Texture.hpp.


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