pub struct BufferSlice {
pub offset: u64,
pub size: u64,
}Expand description
Where a HostBuffer::alloc call’s bytes ended up: a byte range within
the arena’s single GPU buffer.
Not wgpu::BufferSlice — this is a plain pair of numbers with no
borrow of a buffer, so it can be stored in a display list, sorted, or
handed to a bind-group builder long after the allocation that produced
it.
Fields§
§offset: u64Byte offset into the arena buffer. Always a multiple of the effective alignment, so it is legal as a uniform binding offset.
size: u64Length in bytes of the data written, excluding any alignment padding that precedes it.
Trait Implementations§
Source§impl Clone for BufferSlice
impl Clone for BufferSlice
impl Copy for BufferSlice
Source§impl Debug for BufferSlice
impl Debug for BufferSlice
Source§impl Default for BufferSlice
impl Default for BufferSlice
impl Eq for BufferSlice
Source§impl PartialEq for BufferSlice
impl PartialEq for BufferSlice
impl StructuralPartialEq for BufferSlice
Auto Trait Implementations§
impl Freeze for BufferSlice
impl RefUnwindSafe for BufferSlice
impl Send for BufferSlice
impl Sync for BufferSlice
impl Unpin for BufferSlice
impl UnsafeUnpin for BufferSlice
impl UnwindSafe for BufferSlice
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.