enum ArrayStorage {
Buffer {
buffer: Buffer,
staging: StagingBuffer,
},
Texel(Box<TexelArray>),
}Expand description
Where an Array’s elements live.
Variants§
Buffer
A storage buffer, with the staging buffer uploads reach it through.
Fields
§
buffer: BufferThe buffer holding every element.
§
staging: StagingBufferThe staging buffer the bytes are written into before the copy.
Texel(Box<TexelArray>)
A texture, which carries its own staging and row padding.
Boxed because a TexelArray holds a texture, its view and a scratch
row buffer, and an Array is stored inline by its owner: the pointer
keeps the buffer path from paying for the texel path’s footprint.
Auto Trait Implementations§
impl !RefUnwindSafe for ArrayStorage
impl !UnwindSafe for ArrayStorage
impl Forget for ArrayStorage
impl Freeze for ArrayStorage
impl Send for ArrayStorage
impl Sync for ArrayStorage
impl Unpin for ArrayStorage
impl UnsafeUnpin for ArrayStorage
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§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