pub struct DrawPhaseLimits {
pub texture_size: DeviceSize,
pub max_tex_load: usize,
pub max_image_primitives: usize,
pub max_radial_gradient_primitives: usize,
pub max_linear_gradient_primitives: usize,
pub max_gradient_stop_primitives: usize,
pub max_texture_primitives: usize,
pub max_filter_matrix_len: usize,
pub max_mask_layers: usize,
}Expand description
Represents the sets of limits an GPU backend can provide in a single draw
Fields§
§texture_size: DeviceSizeThe maximum size of the texture that the backend can create.
max_tex_load: usizeThe maximum number of textures that the backend can load in a single draw
max_image_primitives: usizeThe maximum number of mask layers that the backend can load in a single draw phase
max_radial_gradient_primitives: usizeThe maximum number of radial gradient primitives that the backend can load in a single draw
max_linear_gradient_primitives: usizeThe maximum number of linear gradient primitives that the backend can load in a single draw
max_gradient_stop_primitives: usizeThe maximum number of gradient stops that the backend can load in a single draw phase
max_texture_primitives: usizeThe maximum number of texture primitives that the backend can load in a single draw phase
max_filter_matrix_len: usizeThe maximum size of the filter matrix that the backend can load in a single draw phase
max_mask_layers: usizeThe maximum number of mask layers that the backend can load in a single
Auto Trait Implementations§
impl Freeze for DrawPhaseLimits
impl RefUnwindSafe for DrawPhaseLimits
impl Send for DrawPhaseLimits
impl Sync for DrawPhaseLimits
impl Unpin for DrawPhaseLimits
impl UnsafeUnpin for DrawPhaseLimits
impl UnwindSafe for DrawPhaseLimits
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more