VkCV Framework  0.0.1
CV Vulkan framework
vkcv::asset::Texture Struct Reference

#include <asset_loader.hpp>

Public Attributes

std::filesystem::path path
 
int sampler
 
union {
   int   width
 
   int   w
 
}; 
 
union {
   int   height
 
   int   h
 
}; 
 
int channels
 
std::vector< uint8_t > data
 

Detailed Description

This struct describes a (partially) loaded texture. The data member is not populated after calling probeScene() but only when calling loadMesh(), loadScene() or loadTexture(). Note that textures are currently always loaded with 4 channels as RGBA, even if the image has just RGB or is grayscale. In the case where the glTF-file does not provide a URI but references a buffer view for the raw data, the path member will be empty even though the rest is initialized properly. NOTE: Loading textures without URI is untested.


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