Skip to content

Engine → Assets

binary_asset.h

The published payload: the source bytes as imported.

Structs

File Description
binary_asset The published payload: the source bytes as imported.

Classes

File Description
binary_importer Imports .dat / .bytes / .raw files verbatim; raw data files use .bytes. It does not claim .bin, the extension of glTF's external buffers, which are side files of the .gltf that reads them. So a .bin file whose .meta names no importer is recorded NO_IMPORTER when no other registered importer claims .bin: it gets a meta and a browser row, but no import and no blob. A .meta that names this importer (one written while it still claimed .bin, or set through asset_database::set_importer) still imports the file.
binary_loader Copies the payload bytes; finalise is trivial. The fallback is an empty asset.

Macros

CONJURE_DECLARE_ASSET_TYPE

CONJURE_DECLARE_ASSET_TYPE(conjure::assets::binary_asset, "conjure.assets.binary")

Functions

Public

register_binary_asset_type

[[nodiscard]] CONJURE_API core::result<void> register_binary_asset_type(
    asset_type_registry &types,
    importer_registry *importers = nullptr);

Registers the type and, when a registry is given, the importer.