Struct vulkano::command_buffer::FillBufferInfo
source · [−]pub struct FillBufferInfo {
pub data: u32,
pub dst_buffer: Arc<dyn BufferAccess>,
pub dst_offset: DeviceSize,
pub size: DeviceSize,
pub _ne: NonExhaustive,
}
Expand description
Parameters to fill a region of a buffer with repeated copies of a value.
Fields
data: u32
The data to fill with.
The default value is 0
.
dst_buffer: Arc<dyn BufferAccess>
The buffer to fill.
There is no default value.
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.
_ne: NonExhaustive
Implementations
sourceimpl FillBufferInfo
impl FillBufferInfo
sourcepub fn dst_buffer(dst_buffer: Arc<dyn BufferAccess>) -> Self
pub fn dst_buffer(dst_buffer: Arc<dyn BufferAccess>) -> Self
Returns a FillBufferInfo
with the specified dst_buffer
.
Trait Implementations
sourceimpl Clone for FillBufferInfo
impl Clone for FillBufferInfo
sourcefn clone(&self) -> FillBufferInfo
fn clone(&self) -> FillBufferInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for FillBufferInfo
impl Send for FillBufferInfo
impl Sync for FillBufferInfo
impl Unpin for FillBufferInfo
impl !UnwindSafe for FillBufferInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more