bevy_render::mesh::allocator

Function allocate_and_free_meshes

Source
pub fn allocate_and_free_meshes(
    mesh_allocator: ResMut<'_, MeshAllocator>,
    mesh_allocator_settings: Res<'_, MeshAllocatorSettings>,
    extracted_meshes: Res<'_, ExtractedAssets<RenderMesh>>,
    mesh_vertex_buffer_layouts: ResMut<'_, MeshVertexBufferLayouts>,
    render_device: Res<'_, RenderDevice>,
    render_queue: Res<'_, RenderQueue>,
)
Expand description

A system that processes newly-extracted or newly-removed meshes and writes their data into buffers or frees their data as appropriate.