pub struct BlitArgs {
    pub src_mip: u8,
    pub src_x: u16,
    pub src_y: u16,
    pub src_z: u16,
    pub width: u16,
    pub height: u16,
    pub depth: u16,
}

Fields

src_mip: u8

Source texture mip level.

src_x: u16

Source texture X position.

src_y: u16

Source texture Y position.

src_z: u16

If texture is 2D this argument should be 0. If source texture is cube this argument represents source texture cube face. For 3D texture this argument represents source texture Z position.

width: u16

Width of region.

height: u16

Height of region.

depth: u16

If texture is 3D this argument represents depth of region, otherwise it’s unused.

Trait Implementations

Returns the “default value” for a type. 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 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.