pub trait ModelData {
type PreallocOffsetType;
type RendererParams;
// Required methods
fn prealloc(
&self,
alloc: &mut BufferPrealloc<'_>,
) -> Self::PreallocOffsetType;
fn stage_data_into(
&self,
mem: &MappedMemory<'_, impl DeviceMemoryMut + ?Sized>,
offsets: Self::PreallocOffsetType,
) -> Self::RendererParams;
}
Required Associated Types§
Required Methods§
fn prealloc(&self, alloc: &mut BufferPrealloc<'_>) -> Self::PreallocOffsetType
fn stage_data_into( &self, mem: &MappedMemory<'_, impl DeviceMemoryMut + ?Sized>, offsets: Self::PreallocOffsetType, ) -> Self::RendererParams
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.