Skip to main content

MaterialHandle

Type Alias MaterialHandle 

Source
pub type MaterialHandle = HandleComponent<Box<dyn Material>>;
Expand description

Runtime-only resolved material: a shared handle to the type-erased material data plus its identifying AssetUUID. Produced by the resolver, consumed by the GPU material projection. A readable alias for call sites.

Aliased Type§

pub struct MaterialHandle {
    pub handle: AssetHandle<Box<dyn Material>>,
    pub uuid: AssetUUID,
}

Fields§

§handle: AssetHandle<Box<dyn Material>>

A shared, reference-counted pointer to the asset’s data.

§uuid: AssetUUID

The unique, persistent identifier of the asset.