LDKAssetMaterialData

typedef struct LDKAssetMaterialData{
  LDKMaterialDesc descriptor;
  u64 revision;
  bool dirty;
  bool is_missing;
}LDKAssetMaterialData;
Function in ldk_material_asset.h

ldk_asset_manager_material_create

Create the asset manager material.

LDK_API LDKAssetMaterial ldk_asset_manager_material_create(
 const LDKMaterialIOContext *context,
 const char *path,
 const LDKMaterialDesc *descriptor,
 LDKMaterialIOResult *result
);

Parameters

const LDKMaterialIOContext *context
Context used by this operation.
const char *path
Path identifying the file or resource.
const LDKMaterialDesc *descriptor
Resource or component descriptor.
LDKMaterialIOResult *result
Optional result structure populated with error details.

Returns

Handle to the requested object or resource.

Function in ldk_material_asset.h

ldk_asset_manager_material_load_shared

Load or reuse shared the asset manager material.

LDK_API LDKAssetMaterial ldk_asset_manager_material_load_shared(
 const LDKMaterialIOContext *context,
 const char *path,
 LDKMaterialIOResult *result
);

Parameters

const LDKMaterialIOContext *context
Context used by this operation.
const char *path
Path identifying the file or resource.
LDKMaterialIOResult *result
Optional result structure populated with error details.

Returns

Handle to the requested object or resource.

Function in ldk_material_asset.h

ldk_asset_manager_material_save

Save the asset manager material.

LDK_API bool ldk_asset_manager_material_save(
 const LDKMaterialIOContext *context,
 LDKAssetMaterial asset,
 LDKMaterialIOResult *result
);

Parameters

const LDKMaterialIOContext *context
Context used by this operation.
LDKAssetMaterial asset
Asset handle to inspect or modify.
LDKMaterialIOResult *result
Optional result structure populated with error details.

Returns

True if the operation succeeds; false otherwise.

Function in ldk_material_asset.h

ldk_asset_manager_material_update

Update the asset manager material.

LDK_API bool ldk_asset_manager_material_update(
 LDKAssetManager *manager,
 LDKAssetMaterial asset,
 const LDKMaterialDesc *descriptor
);

Parameters

LDKAssetManager *manager
Asset manager that owns or resolves the asset.
LDKAssetMaterial asset
Asset handle to inspect or modify.
const LDKMaterialDesc *descriptor
Resource or component descriptor.

Returns

True if the operation succeeds; false otherwise.