pub struct BufferUsageIntent {
pub buffer: BufferId,
pub access: AccessType,
pub set: u32,
pub binding: u32,
pub offset: u64,
pub size: u64,
}Expand description
Describes how a buffer is bound for a compute or graphics pass.
Bind group set indices and bindings are user-defined via BindGroupLayoutEntry.
The HAL translates BufferUsageIntent entries into descriptor writes without
enforcing any engine-specific set numbering convention.
Fields§
§buffer: BufferId§access: AccessType§set: u32§binding: u32§offset: u64§size: u64Trait Implementations§
Source§impl Clone for BufferUsageIntent
impl Clone for BufferUsageIntent
Source§fn clone(&self) -> BufferUsageIntent
fn clone(&self) -> BufferUsageIntent
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 moreAuto Trait Implementations§
impl Freeze for BufferUsageIntent
impl RefUnwindSafe for BufferUsageIntent
impl Send for BufferUsageIntent
impl Sync for BufferUsageIntent
impl Unpin for BufferUsageIntent
impl UnsafeUnpin for BufferUsageIntent
impl UnwindSafe for BufferUsageIntent
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