Trait webrender::prim_store::InternablePrimitive
source · pub trait InternablePrimitive: Internable<InternData = ()> + Sized {
// Required methods
fn into_key(self, info: &LayoutPrimitiveInfo) -> Self::Key;
fn make_instance_kind(
key: Self::Key,
data_handle: Handle<Self>,
prim_store: &mut PrimitiveStore,
reference_frame_relative_offset: LayoutVector2D
) -> PrimitiveInstanceKind;
}
Expand description
Trait for primitives that are directly internable. see SceneBuilder::add_primitive
Required Methods§
sourcefn into_key(self, info: &LayoutPrimitiveInfo) -> Self::Key
fn into_key(self, info: &LayoutPrimitiveInfo) -> Self::Key
Build a new key from self with info
.