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§
source§impl 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§
source§impl Clone for FillBufferInfo
impl Clone for FillBufferInfo
source§fn clone(&self) -> FillBufferInfo
fn clone(&self) -> FillBufferInfo
Returns a copy 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 more