pub struct YuvUploadNode {
pub format: YuvFormat,
pub width: u32,
pub height: u32,
/* private fields */
}Expand description
Upload raw YUV plane buffers to the GPU and convert to RGBA in a fragment
shader, bypassing CPU-side sws_scale.
The node has input_count() = 0; it sources all pixel data from the plane
buffers set via YuvUploadNode::set_planes. Call set_planes once per
frame before the graph processes it.
Fields§
§format: YuvFormatPixel sub-sampling format.
width: u32Frame width in pixels.
height: u32Frame height in pixels.
Implementations§
Trait Implementations§
Source§impl Default for YuvUploadNode
impl Default for YuvUploadNode
Source§impl RenderNode for YuvUploadNode
Available on crate feature wgpu only.
impl RenderNode for YuvUploadNode
Available on crate feature
wgpu only.Source§fn input_count(&self) -> usize
fn input_count(&self) -> usize
Number of input textures required by this node (default: 1).
Source§fn process(
&self,
_inputs: &[&Texture],
outputs: &[&Texture],
ctx: &RenderContext,
)
fn process( &self, _inputs: &[&Texture], outputs: &[&Texture], ctx: &RenderContext, )
Run the GPU render pass. Read more
Source§fn pass_count(&self) -> usize
fn pass_count(&self) -> usize
Number of render passes (default: 1). Multi-pass nodes (e.g. gaussian
blur) return 2 or more.
Source§impl RenderNodeCpu for YuvUploadNode
impl RenderNodeCpu for YuvUploadNode
Auto Trait Implementations§
impl !Freeze for YuvUploadNode
impl !RefUnwindSafe for YuvUploadNode
impl !UnwindSafe for YuvUploadNode
impl Send for YuvUploadNode
impl Sync for YuvUploadNode
impl Unpin for YuvUploadNode
impl UnsafeUnpin for YuvUploadNode
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