pub struct MeshSeedRegion {
pub vtx_offset: u64,
pub vtx_bytes: u64,
pub idx_offset: u64,
pub idx_bytes: u64,
}Expand description
The streaming headroom reserved in the shared vertex / index buffers, in bytes. After init the renderer seeds the mesh sub-allocators with this one block instead of the individual build-time regions, so the buffers shrink from “every streamed mesh at once” to “the cap-many resident at once”.
Fields§
§vtx_offset: u64Byte offset of the streaming block in the shared vertex buffer.
vtx_bytes: u64Byte size of the streaming block in the shared vertex buffer.
idx_offset: u64Byte offset of the streaming block in the shared index buffer.
idx_bytes: u64Byte size of the streaming block in the shared index buffer.
Trait Implementations§
Source§impl Clone for MeshSeedRegion
impl Clone for MeshSeedRegion
Source§fn clone(&self) -> MeshSeedRegion
fn clone(&self) -> MeshSeedRegion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MeshSeedRegion
Source§impl Debug for MeshSeedRegion
impl Debug for MeshSeedRegion
impl Eq for MeshSeedRegion
Source§impl PartialEq for MeshSeedRegion
impl PartialEq for MeshSeedRegion
impl StructuralPartialEq for MeshSeedRegion
Auto Trait Implementations§
impl Freeze for MeshSeedRegion
impl RefUnwindSafe for MeshSeedRegion
impl Send for MeshSeedRegion
impl Sync for MeshSeedRegion
impl Unpin for MeshSeedRegion
impl UnsafeUnpin for MeshSeedRegion
impl UnwindSafe for MeshSeedRegion
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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> ⓘ
Converts
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> ⓘ
Converts
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