pub(crate) struct VertexLimits {
pub(crate) vertex_limit: u64,
vertex_limit_slot: u32,
pub(crate) instance_limit: u64,
instance_limit_slot: u32,
}
Fields§
§vertex_limit: u64
Length of the shortest vertex rate vertex buffer
vertex_limit_slot: u32
Buffer slot which the shortest vertex rate vertex buffer is bound to
instance_limit: u64
Length of the shortest instance rate vertex buffer
instance_limit_slot: u32
Buffer slot which the shortest instance rate vertex buffer is bound to
Implementations§
source§impl VertexLimits
impl VertexLimits
pub(crate) fn new( buffer_sizes: impl Iterator<Item = Option<BufferAddress>>, pipeline_steps: &[VertexStep], ) -> Self
pub(crate) fn validate_vertex_limit( &self, first_vertex: u32, vertex_count: u32, ) -> Result<(), DrawError>
pub(crate) fn validate_instance_limit( &self, first_instance: u32, instance_count: u32, ) -> Result<(), DrawError>
Trait Implementations§
source§impl Debug for VertexLimits
impl Debug for VertexLimits
source§impl Default for VertexLimits
impl Default for VertexLimits
source§fn default() -> VertexLimits
fn default() -> VertexLimits
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VertexLimits
impl RefUnwindSafe for VertexLimits
impl Send for VertexLimits
impl Sync for VertexLimits
impl Unpin for VertexLimits
impl UnwindSafe for VertexLimits
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