pub struct UploadPlan {
pub id: SubresourceId,
pub path: UploadPath,
pub format: GpuFormat,
pub width: u32,
pub height: u32,
pub depth: u32,
pub data_offset: usize,
pub data_len: usize,
pub bytes_per_row: u32,
pub rows_per_image: u32,
}Expand description
One mip/layer/face ready for write_texture / buffer→image copy.
Fields§
§id: SubresourceId§path: UploadPath§format: GpuFormat§width: u32§height: u32§depth: u32§data_offset: usizeByte offset into Dds::data for UploadPath::Compressed.
For UploadPath::DecodedRgba8, always 0 (buffer is the decode output).
data_len: usizeByte length of the upload region.
bytes_per_row: u32bytes_per_row / VkBufferImageCopy.bufferRowLength pitch in bytes.
BCn: bytes for one row of blocks. RGBA8: width * 4.
rows_per_image: u32Rows per depth slice: block rows for BCn, texel rows for RGBA8.
Trait Implementations§
Source§impl Clone for UploadPlan
impl Clone for UploadPlan
Source§fn clone(&self) -> UploadPlan
fn clone(&self) -> UploadPlan
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 moreSource§impl Debug for UploadPlan
impl Debug for UploadPlan
impl Eq for UploadPlan
Source§impl PartialEq for UploadPlan
impl PartialEq for UploadPlan
impl StructuralPartialEq for UploadPlan
Auto Trait Implementations§
impl Freeze for UploadPlan
impl RefUnwindSafe for UploadPlan
impl Send for UploadPlan
impl Sync for UploadPlan
impl Unpin for UploadPlan
impl UnsafeUnpin for UploadPlan
impl UnwindSafe for UploadPlan
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