Diligent Engine
Loading...
Searching...
No Matches
Diligent::GLTF::TextureSourceInfo Struct Reference

Resolved texture source referenced by a GLTF texture. More...

#include <GLTFDocument.hpp>

Public Attributes

Uint32 TextureIndex = 0
 Index in tinygltf::Model::textures.
int ImageIndex = -1
 Index in tinygltf::Model::images.
int SamplerIndex = -1
 Index in tinygltf::Model::samplers.
std::string URI
const void * pData = nullptr
 Pointer to encoded image data for embedded buffer-view or data URI images.
Uint64 DataSize = 0
 Size of encoded image data in bytes.

Detailed Description

Resolved texture source referenced by a GLTF texture.

Member Data Documentation

◆ URI

std::string Diligent::GLTF::TextureSourceInfo::URI

External image path; resolved against the document directory when requested. Empty for embedded data. GLTF URI escaping has already been decoded once; do not percent-decode this path again.