Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
GltfLoader.cpp File Reference
#include "Engine/Mesh/GltfLoader.h"
#include "Engine/Mesh/Vertex.h"
#include "Engine/Texture/ExrLoader.h"
#include "Engine/World/Transform.h"
#include "Engine/Mesh/AssetManager.h"
#include <future>
#include <plog/Log.h>
#include <sstream>
#include "Engine/Core/Engine.h"
#include "Engine/Core/Optional.h"
#include "Engine/Logging/TracyMacros.hpp"
#include "Engine/Core/Settings.h"
Include dependency graph for GltfLoader.cpp:

Go to the source code of this file.

Namespaces

namespace  EngineCore
 Log category system implementation.

Macros

#define EXTRACT_VERTEX_DATA(view, attribKey)
#define MATCH_MATERIAL(name, type, ...)

Macro Definition Documentation

◆ EXTRACT_VERTEX_DATA

#define EXTRACT_VERTEX_DATA ( view,
attribKey )
Value:
{ \
constexpr const char * positionKey = attribKey; \
if ( primitive.attributes.find( attribKey ) != primitive.attributes.end() ) \
{ \
view.emplace( buffers, bufferViews, accessors.at(primitive.attributes.at( attribKey ))); \
} \
}

Referenced by EngineCore::GltfLoader::GltfVertexData::GltfVertexData().

◆ MATCH_MATERIAL

#define MATCH_MATERIAL ( name,
type,
... )
Value:
if (ext.materialName == PipelineNames::name) { \
materialData = type(__VA_ARGS__); \
return; \
}

Referenced by EngineCore::GltfLoader::GltfMaterialData::setupMaterialData().