Module prelude

Source
Expand description

A prelude for user interface development, meant to be glob-imported.

Re-exports§

pub extern crate craballoc;
pub extern crate glam;
pub use crate::context::*;
pub use super::*;

Modules§

crabslab
Creating and crafting a tasty slab of memory.

Structs§

Array
A pointer to contiguous T elements in a slab.
CpuRuntime
A runtime that only operates on the CPU.
Gpu
A type that lives only on the GPU.
GpuArray
A array type that lives on the GPU.
GpuArrayContainer
GpuContainer
Hybrid
A “hybrid” type that lives on the CPU and the GPU.
HybridArray
A “hybrid” array type that lives on the CPU and the GPU.
HybridArrayContainer
HybridContainer
HybridWriteGuard
RAII structure used to update a [Hybrid<T>].
Id
An identifier that can be used to read or write a type from/into the slab.
NoContainer
A type that represents no container, just the value itself.
SlabAllocator
Manages slab allocations and updates over a parameterised buffer.
SlabBuffer
A thin wrapper around a buffer T that provides the ability to tell if the buffer has been invalidated by the SlabAllocator that it originated from.
SlabUpdate
An update to a slab.
SourceId
An identifier for a unique source of updates.
VecSlab
A slab buffer used only on the GPU.
WeakContainer
WeakGpu
WeakGpuContainer
WeakGpuRef
WeakHybrid
A hybrid value that holds a non-owning reference to the underlying data.
WgpuRuntime
A slab allocation runtime that creates and updates [wgpu::Buffer]s.

Enums§

SlabAllocatorError

Traits§

IsContainer
An abstraction over the container type of a hybrid value of T.
IsRuntime
Represents the runtime that provides the interface to the GPU buffer.