pub struct RasterLimits {
pub max_pixels: u64,
pub max_bytes: u64,
pub max_work: u64,
}Expand description
Logical preparation/composition budgets, not a process memory cap.
Fields§
§max_pixels: u64Maximum raster pixels, including filter guard bands and empty frames.
max_bytes: u64Maximum live logical bytes, including scratch; capacity/overhead is excluded.
max_work: u64Maximum admitted work units; u64::MAX disables the authoring work cap.
Implementations§
Source§impl RasterLimits
impl RasterLimits
Default trusted-authoring admission, bounded by pixels and logical bytes.
Sourcepub const fn sandbox() -> Self
pub const fn sandbox() -> Self
Opt-in bounded raster work; arbitrary scene callbacks are still trusted Rust.
Sourcepub fn validate_size(self, size: PixelSize) -> Result<(), ValidationError>
pub fn validate_size(self, size: PixelSize) -> Result<(), ValidationError>
Checks positive allowances and whether the raster fits the pixel limit. Does not allocate pixels or reserve the eventual frame’s byte/work cost.
Trait Implementations§
Source§impl Clone for RasterLimits
impl Clone for RasterLimits
impl Copy for RasterLimits
Source§impl Debug for RasterLimits
impl Debug for RasterLimits
Auto Trait Implementations§
impl Forget for RasterLimits
impl Freeze for RasterLimits
impl RefUnwindSafe for RasterLimits
impl Send for RasterLimits
impl Sync for RasterLimits
impl Unpin for RasterLimits
impl UnsafeUnpin for RasterLimits
impl UnwindSafe for RasterLimits
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