pub struct FillBufferInfo<'a> {
pub dst_buffer: Id<Buffer>,
pub dst_offset: DeviceSize,
pub size: DeviceSize,
pub data: u32,
pub _ne: NonExhaustive<'a>,
}
Expand description
Parameters to fill a region of a buffer with repeated copies of a value.
Fields§
§dst_buffer: Id<Buffer>
The buffer to fill.
The default value is Id::INVALID
, which must be overridden.
dst_offset: DeviceSize
The offset in bytes from the start of dst_buffer
that filling will start from.
This must be a multiple of 4.
The default value is 0
.
size: DeviceSize
The number of bytes to fill.
This must be a multiple of 4.
The default value is the size of dst_buffer
, rounded down to the nearest multiple of 4.
data: u32
The data to fill with.
The default value is 0
.
_ne: NonExhaustive<'a>
Trait Implementations§
Source§impl<'a> Clone for FillBufferInfo<'a>
impl<'a> Clone for FillBufferInfo<'a>
Source§fn clone(&self) -> FillBufferInfo<'a>
fn clone(&self) -> FillBufferInfo<'a>
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<'a> Debug for FillBufferInfo<'a>
impl<'a> Debug for FillBufferInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for FillBufferInfo<'a>
impl<'a> RefUnwindSafe for FillBufferInfo<'a>
impl<'a> Send for FillBufferInfo<'a>
impl<'a> Sync for FillBufferInfo<'a>
impl<'a> Unpin for FillBufferInfo<'a>
impl<'a> UnwindSafe for FillBufferInfo<'a>
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