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

Resolved vertex attribute and index views for a glTF primitive. More...

#include <GltfLoader.h>

Public Member Functions

 GltfVertexData (const std::vector< tinygltf::Buffer > &buffers, const std::vector< tinygltf::BufferView > &bufferViews, const std::vector< tinygltf::Accessor > &accessors, const tinygltf::Primitive &primitive)
 Extracts known attribute views from a primitive.

Public Attributes

std::optional< GltfBufferDataView > positionDataView
 POSITION attribute view when present.
std::optional< GltfBufferDataView > normalDataView
 NORMAL attribute view when present.
std::optional< GltfBufferDataView > tangentDataView
 TANGENT attribute view when present. The xyz values store tangent direction and w stores handedness.
std::optional< GltfBufferDataView > uvDataView
 TEXCOORD_0 attribute view when present.
std::optional< GltfBufferDataView > lightmapDataView
 TEXCOORD_1 attribute view when present.
std::optional< GltfBufferDataView > indexDataView
 Primitive index accessor view.
std::optional< GltfBufferDataView > jointsDataView
 JOINTS_0 attribute view when present.
std::optional< GltfBufferDataView > weightsDataView
 WEIGHTS_0 attribute view when present.

Detailed Description

Resolved vertex attribute and index views for a glTF primitive.

Definition at line 96 of file GltfLoader.h.

Constructor & Destructor Documentation

◆ GltfVertexData()

Engine::Assets::Loaders::GltfLoader::GltfVertexData::GltfVertexData ( const std::vector< tinygltf::Buffer > & buffers,
const std::vector< tinygltf::BufferView > & bufferViews,
const std::vector< tinygltf::Accessor > & accessors,
const tinygltf::Primitive & primitive )

Extracts known attribute views from a primitive.

Parameters
buffersglTF buffers owned by the model.
bufferViewsglTF buffer views owned by the model.
accessorsglTF accessors owned by the model.
primitivePrimitive whose attributes and indices are resolved.

Member Data Documentation

◆ indexDataView

std::optional<GltfBufferDataView> Engine::Assets::Loaders::GltfLoader::GltfVertexData::indexDataView

Primitive index accessor view.

Definition at line 142 of file GltfLoader.h.

◆ jointsDataView

std::optional<GltfBufferDataView> Engine::Assets::Loaders::GltfLoader::GltfVertexData::jointsDataView

JOINTS_0 attribute view when present.

JOINTS_0 (typically uint16 x4)

Definition at line 147 of file GltfLoader.h.

◆ lightmapDataView

std::optional<GltfBufferDataView> Engine::Assets::Loaders::GltfLoader::GltfVertexData::lightmapDataView

TEXCOORD_1 attribute view when present.

Definition at line 137 of file GltfLoader.h.

◆ normalDataView

std::optional<GltfBufferDataView> Engine::Assets::Loaders::GltfLoader::GltfVertexData::normalDataView

NORMAL attribute view when present.

Definition at line 120 of file GltfLoader.h.

◆ positionDataView

std::optional<GltfBufferDataView> Engine::Assets::Loaders::GltfLoader::GltfVertexData::positionDataView

POSITION attribute view when present.

Definition at line 115 of file GltfLoader.h.

◆ tangentDataView

std::optional<GltfBufferDataView> Engine::Assets::Loaders::GltfLoader::GltfVertexData::tangentDataView

TANGENT attribute view when present. The xyz values store tangent direction and w stores handedness.

Definition at line 127 of file GltfLoader.h.

◆ uvDataView

std::optional<GltfBufferDataView> Engine::Assets::Loaders::GltfLoader::GltfVertexData::uvDataView

TEXCOORD_0 attribute view when present.

Definition at line 132 of file GltfLoader.h.

◆ weightsDataView

std::optional<GltfBufferDataView> Engine::Assets::Loaders::GltfLoader::GltfVertexData::weightsDataView

WEIGHTS_0 attribute view when present.

WEIGHTS_0 (float x4)

Definition at line 152 of file GltfLoader.h.


The documentation for this struct was generated from the following file:
  • /workspace/magerbeton/gl3-vulkan/code/Engine/include/Engine/Mesh/GltfLoader.h