pub struct RenderLimits {
pub max_dimension: u32,
pub managed_bytes: u64,
pub resource_slots: u32,
}Expand description
Limits for managed resources; excludes driver and operating-system overhead.
Fields§
§max_dimension: u32Maximum physical attachment width/height.
managed_bytes: u64Total bytes admitted by a resource arena.
resource_slots: u32Maximum live or retired resource slots.
Implementations§
Source§impl RenderLimits
impl RenderLimits
Sourcepub fn validate(self) -> Result<Self, RenderError>
pub fn validate(self) -> Result<Self, RenderError>
Validate configuration before allocating slots or GPU memory.
Sourcepub fn attachment_bytes(
self,
width: u32,
height: u32,
) -> Result<u64, RenderError>
pub fn attachment_bytes( self, width: u32, height: u32, ) -> Result<u64, RenderError>
Account RGBA8 color and Depth32Float attachments before creation.
Trait Implementations§
Source§impl Clone for RenderLimits
impl Clone for RenderLimits
impl Copy for RenderLimits
Source§impl Debug for RenderLimits
impl Debug for RenderLimits
Source§impl Default for RenderLimits
impl Default for RenderLimits
impl Eq for RenderLimits
Source§impl PartialEq for RenderLimits
impl PartialEq for RenderLimits
impl StructuralPartialEq for RenderLimits
Auto Trait Implementations§
impl Freeze for RenderLimits
impl RefUnwindSafe for RenderLimits
impl Send for RenderLimits
impl Sync for RenderLimits
impl Unpin for RenderLimits
impl UnsafeUnpin for RenderLimits
impl UnwindSafe for RenderLimits
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