pub struct ReadBackData {
pub data: &'static [u8],
pub format: Format,
pub size: usize,
pub row_pitch: usize,
pub slice_pitch: usize,
}Expand description
Results from an issued ReadBackRequest
Fields§
§data: &'static [u8]Slice of data bytes
format: FormatGPU format to interperet the data
size: usizeTotal size of data (should be == data.len())
row_pitch: usizePitch of a row of data
slice_pitch: usizePitch of a slice (3D texture or array level, cubemap face etc)
Trait Implementations§
Source§impl Clone for ReadBackData
impl Clone for ReadBackData
Source§fn clone(&self) -> ReadBackData
fn clone(&self) -> ReadBackData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ReadBackData
impl RefUnwindSafe for ReadBackData
impl Send for ReadBackData
impl Sync for ReadBackData
impl Unpin for ReadBackData
impl UnsafeUnpin for ReadBackData
impl UnwindSafe for ReadBackData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more