pub struct AssetLimits {
pub max_assets: u32,
pub max_vertices: u32,
pub max_indices: u32,
pub max_instances: u32,
pub managed_cpu_bytes: u64,
}Expand description
Bounded static asset/CPU preparation profile, separate from GPU/driver allocations.
Fields§
§max_assets: u32Maximum registered meshes and materials each, in 1..65536.
max_vertices: u32Per-mesh vertex count/capacity, in 3..65536.
max_indices: u32Per-mesh index count/capacity, in 3..196608.
max_instances: u32Instances prepared per frame, in 1..65536.
managed_cpu_bytes: u64Shared payload ceiling, including assets retired but held by prepared frames.
Implementations§
Source§impl AssetLimits
impl AssetLimits
Sourcepub fn validate(self) -> Result<Self, RenderError>
pub fn validate(self) -> Result<Self, RenderError>
Validate limits before creating any retained table.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AssetLimits
impl RefUnwindSafe for AssetLimits
impl Send for AssetLimits
impl Sync for AssetLimits
impl Unpin for AssetLimits
impl UnsafeUnpin for AssetLimits
impl UnwindSafe for AssetLimits
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more