MCPcopy Create free account
hub / github.com/assimp/assimp / aiGetMemoryRequirements

Function aiGetMemoryRequirements

code/Common/Assimp.cpp:512–525  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------ Get the memory requirements for a particular import.

Source from the content-addressed store, hash-verified

510// ------------------------------------------------------------------------------------------------
511// Get the memory requirements for a particular import.
512void aiGetMemoryRequirements(const C_STRUCT aiScene *pIn,
513 C_STRUCT aiMemoryInfo *in) {
514 ASSIMP_BEGIN_EXCEPTION_REGION();
515
516 // find the importer associated with this data
517 const ScenePrivateData *priv = ScenePriv(pIn);
518 if (!priv || !priv->mOrigImporter) {
519 ReportSceneNotFoundError();
520 return;
521 }
522
523 return priv->mOrigImporter->GetMemoryRequirements(*in);
524 ASSIMP_END_EXCEPTION_REGION(void);
525}
526
527// ------------------------------------------------------------------------------------------------
528ASSIMP_API const C_STRUCT aiTexture *aiGetEmbeddedTexture(const C_STRUCT aiScene *pIn, const char *filename) {

Callers

nothing calls this directly

Calls 3

ScenePrivFunction · 0.85
ReportSceneNotFoundErrorFunction · 0.85
GetMemoryRequirementsMethod · 0.80

Tested by

no test coverage detected