#[repr(C)]
pub struct LockedBox { pub row_pitch: int, pub slice_pitch: int, pub bits: *mut u8, }
Expand description

[docs.microsoft.com] D3DLOCKED_BOX

A locked 3-dimensional box/volume.

Fields

row_pitch: int

Byte offset from the left edge of one row, to the left edge of the next row.

For block formats like DXT, this the pitch between rows of blocks.

slice_pitch: int

Byte offset from the top-left of one slice, to the top-left of the next deepest slice.

bits: *mut u8

Pointer to the beginning of the volume/box. If a [d3d::Box] was provided to the lock_box[_unchecked] call, bits will be appropriately offset from the start of the volume.

Trait Implementations

Converts this type into a mutable reference of the (usually inferred) input type.

Converts this type into a mutable reference of the (usually inferred) input type.

Converts this type into a shared reference of the (usually inferred) input type.

Converts this type into a shared reference of the (usually inferred) input type.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Dereferences the value.

The resulting type after dereferencing.

Mutably dereferences the value.

Converts to this type from the input type.

Converts to this type from the input type.

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.