pub struct RawPlane {
pub data: *const u8,
pub len: usize,
pub stride: usize,
}Available on Windows and crate feature
d3d12 and (crate features d3d11 or d3d12 or wasapi-renderer) only.Expand description
One CPU-resident image plane — data pointer, byte length, and row
stride. Deliberately a plain, GPU-vendor-agnostic struct (no
dependency on any particular rendering crate’s own type) — unlike
D3d12FrameRenderer::submit_nv12_texture’s COM types, this is the
one part of the trait that isn’t D3D12-specific, so
D3d12FrameRenderer implementors only need this crate to know
anything about their concrete rendering setup for the CPU-upload path.
Fields§
§data: *const u8§len: usize§stride: usizeTrait Implementations§
Auto Trait Implementations§
impl !Send for RawPlane
impl !Sync for RawPlane
impl Freeze for RawPlane
impl RefUnwindSafe for RawPlane
impl Unpin for RawPlane
impl UnsafeUnpin for RawPlane
impl UnwindSafe for RawPlane
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