logo
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

Returns a FillBufferInfo with the specified dst_buffer.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.