Diligent Engine
Loading...
Searching...
No Matches
Diligent::RadientSceneAssetImportContext Struct Reference

#include <RadientSceneAssetImporter.hpp>

Public Attributes

IRadientAssetData * pSourceData = nullptr
IRadientAssetResolver * pAssetResolver = nullptr
IRadientAssetManager * pAssetManager = nullptr
IRadientMeshImportServices * pMeshImportServices = nullptr
IRadientMaterialAsset * pDefaultMaterial = nullptr

Detailed Description

Services and resolved source bytes supplied for one scene-asset import.

All pointers are non-null and remain valid throughout Import(). The context does not own them. Registered importers do not retain the asset manager, mesh services, or context after the call; the manager retains the importer, so retaining these services would create a reference cycle. Source data or a parser's backing storage can be retained independently by reference blobs while asset processing still needs their bytes.

Member Data Documentation

◆ pAssetManager

IRadientAssetManager* Diligent::RadientSceneAssetImportContext::pAssetManager = nullptr

Asset manager for textures, materials, skeletons, skins, and animations. Assets returned in the document are created through these services.

◆ pAssetResolver

IRadientAssetResolver* Diligent::RadientSceneAssetImportContext::pAssetResolver = nullptr

Resolver used to locate and open referenced files. Use the root document's resolved URI as RadientAssetResolveInfo::BaseURI for relative references.

◆ pDefaultMaterial

IRadientMaterialAsset* Diligent::RadientSceneAssetImportContext::pDefaultMaterial = nullptr

Manager's default material for primitives without an authored material. Mesh views retain the material when it is assigned to a primitive.

◆ pMeshImportServices

IRadientMeshImportServices* Diligent::RadientSceneAssetImportContext::pMeshImportServices = nullptr

Services for independently shared vertex, index, and morph-target data and for assembling mesh views. Pending data handles can be used immediately to create views; the importer does not wait for child assets to finish.

◆ pSourceData

IRadientAssetData* Diligent::RadientSceneAssetImportContext::pSourceData = nullptr

Already opened root document. GetResolvedURI() is its canonical URI and the base URI for resolving referenced files. The importer does not need to reopen the root document.