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

Loader for KTX2 texture files (BC6H, BC7, etc.) More...

#include <Ktx2Loader.h>

Public Member Functions

 Ktx2Loader ()=default
 Creates a stateless KTX loader.
 ~Ktx2Loader ()=default
 Destroys the loader.
Textures::Ktx2TextureData load (const std::filesystem::path &filename)
 Loads image data and mip metadata from a KTX or KTX2 file.

Detailed Description

Loader for KTX2 texture files (BC6H, BC7, etc.)

Uses libktx to load KTX2 files with pre-computed mipmaps. Supports BC6H-compressed HDR lightmaps and BC7-compressed PBR textures exported via Compressonator.

Definition at line 96 of file Ktx2Loader.h.

Constructor & Destructor Documentation

◆ Ktx2Loader()

Engine::Assets::Loaders::Ktx2Loader::Ktx2Loader ( )
default

Creates a stateless KTX loader.

◆ ~Ktx2Loader()

Engine::Assets::Loaders::Ktx2Loader::~Ktx2Loader ( )
default

Destroys the loader.

Member Function Documentation

◆ load()

Textures::Ktx2TextureData Engine::Assets::Loaders::Ktx2Loader::load ( const std::filesystem::path & filename)

Loads image data and mip metadata from a KTX or KTX2 file.

Parameters
filenamePath to the texture file.
Returns
Loaded KTX texture data.

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