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

Classes

struct  ExrChannelInfo
 Represents channel information from an EXR file header. More...
struct  ExrHeader
 Wrapper for EXR file header information with owned data. More...
class  ExrLoader
 Loader for EXR (OpenEXR) image files. More...
struct  Ktx2TextureData
 Stores all data loaded from a KTX2 file including mip chain. More...
class  TextureHandleRegistry
 Central registry for texture handles, providing O(1) descriptor index lookup. More...
struct  TextureIdentityKey
 Path and semantic type pair that uniquely identifies a texture handle. More...
struct  TextureIdentityKeyHash
 Hash functor for TextureIdentityKey. More...

Functions

Ktx2TextureData extractMipRange (const Ktx2TextureData &source, uint32_t firstMip, uint32_t mipCount)
 Copies a contiguous mip range into a new KTX data object.
std::string normalizeTexturePath (const std::filesystem::path &path)
 Converts a texture path to the registry key path form.
TextureIdentityKey makeTextureIdentityKey (const std::filesystem::path &path, TextureType type)
 Creates a texture identity key from a path and semantic type.

Function Documentation

◆ extractMipRange()

Ktx2TextureData Engine::Assets::Textures::extractMipRange ( const Ktx2TextureData & source,
uint32_t firstMip,
uint32_t mipCount )

Copies a contiguous mip range into a new KTX data object.

Parameters
sourceSource KTX texture data.
firstMipFirst source mip level to copy.
mipCountNumber of mip levels to copy.
Returns
KTX data containing only the requested local mip range.

◆ makeTextureIdentityKey()

TextureIdentityKey Engine::Assets::Textures::makeTextureIdentityKey ( const std::filesystem::path & path,
TextureType type )
inline

Creates a texture identity key from a path and semantic type.

Parameters
pathTexture path.
typeSemantic texture type.
Returns
Normalized texture identity key.

Definition at line 74 of file TextureIdentity.h.

References normalizeTexturePath().

Here is the call graph for this function:

◆ normalizeTexturePath()

std::string Engine::Assets::Textures::normalizeTexturePath ( const std::filesystem::path & path)
inline

Converts a texture path to the registry key path form.

Parameters
pathPath to normalize.
Returns
Generic-string path without a leading ./ prefix.

Definition at line 17 of file TextureIdentity.h.

Referenced by makeTextureIdentityKey().

Here is the caller graph for this function: