pub struct LutNode { /* private fields */ }Expand description
Applies a 3D colour LUT to a frame via trilinear interpolation.
Load one with LutNode::from_cube or LutNode::from_3dl. The GPU path
renders into an Rgba8Unorm target like the other effect nodes, so it is
8-bit only (a high-bit-depth graph falls back as it does for every effect
node today).
Implementations§
Source§impl LutNode
impl LutNode
Sourcepub fn from_cube(path: &Path) -> Result<Self, RenderError>
pub fn from_cube(path: &Path) -> Result<Self, RenderError>
Loads a 3D LUT from an Adobe .cube file.
§Errors
Returns RenderError::LutLoad if the file cannot be read or is malformed
(missing LUT_3D_SIZE, a bad data line, or the wrong entry count).
Sourcepub fn from_3dl(path: &Path) -> Result<Self, RenderError>
pub fn from_3dl(path: &Path) -> Result<Self, RenderError>
Loads a 3D LUT from a Resolve .3dl file.
§Errors
Returns RenderError::LutLoad if the file cannot be read or the entry
count is not a perfect cube.
Trait Implementations§
Source§impl RenderNode for LutNode
Available on crate feature wgpu only.
impl RenderNode for LutNode
Available on crate feature
wgpu only.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 input_count(&self) -> usize
fn input_count(&self) -> usize
Number of input textures required by this node (default: 1).
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.
Auto Trait Implementations§
impl !Freeze for LutNode
impl !RefUnwindSafe for LutNode
impl !UnwindSafe for LutNode
impl Send for LutNode
impl Sync for LutNode
impl Unpin for LutNode
impl UnsafeUnpin for LutNode
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