pub struct GpuBufferHandle {
pub id: u64,
pub size: usize,
pub offset: usize,
pub buffer_type: GpuBufferType,
}Expand description
An opaque handle to an allocated GPU buffer region.
Fields§
§id: u64Unique 64-bit handle value.
size: usizeSize of the allocation in bytes.
offset: usizeByte offset within the backing pool buffer.
buffer_type: GpuBufferTypeLogical buffer type.
Implementations§
Trait Implementations§
Source§impl Clone for GpuBufferHandle
impl Clone for GpuBufferHandle
Source§fn clone(&self) -> GpuBufferHandle
fn clone(&self) -> GpuBufferHandle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GpuBufferHandle
impl Debug for GpuBufferHandle
Source§impl Hash for GpuBufferHandle
impl Hash for GpuBufferHandle
Source§impl PartialEq for GpuBufferHandle
impl PartialEq for GpuBufferHandle
impl Copy for GpuBufferHandle
impl Eq for GpuBufferHandle
impl StructuralPartialEq for GpuBufferHandle
Auto Trait Implementations§
impl Freeze for GpuBufferHandle
impl RefUnwindSafe for GpuBufferHandle
impl Send for GpuBufferHandle
impl Sync for GpuBufferHandle
impl Unpin for GpuBufferHandle
impl UnsafeUnpin for GpuBufferHandle
impl UnwindSafe for GpuBufferHandle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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