Struct DeepFrameBuffer

Source
pub struct DeepFrameBuffer { /* private fields */ }

Implementations§

Source§

impl DeepFrameBuffer

Source

pub fn new() -> DeepFrameBuffer

Create a new DeepFrameBuffer.

Source

pub fn insert(&mut self, name: &str, slice: &DeepSlice) -> Result<(), Error>

Insert a DeepSlice into the DeepFrameBuffer.

§Errors
Source

pub fn get_slice<'a>(&'a self, name: &str) -> Option<DeepSliceRef<'a>>

Find the DeepSlice with the given name in the DeepFrameBuffer

§Returns
  • Some([DeepSliceRef]) - if the DeepSlice is found
  • None - otherwise
Source

pub fn get_slice_mut<'a>( &'a mut self, name: &str, ) -> Option<DeepSliceRefMut<'a>>

Find the DeepSlice with the given name in the DeepFrameBuffer and get a mutable Ref to it

§Returns
  • Some([DeepSliceRefMut]) - if the DeepSlice is found
  • None - otherwise
Source

pub fn iter(&self) -> DeepFrameBufferIter<'_>

Get an iterator over the DeepSlices in this DeepFrameBuffer

Source

pub fn set_sample_count_slice( &mut self, sample_count_slice: &Slice, ) -> Result<(), Error>

Insert a Slice to hold the sample count for each deep pixel.

The slice must be of type PixelType::Uint

§Errors
Source

pub fn set_sample_count_frame(&mut self, frame: Frame) -> Result<(), Error>

Set a Frame to hold the per-pixel sample counts

Source

pub fn sample_count_frame(&self) -> Option<&Frame>

Source

pub fn sample_count_slice(&self) -> SliceRef<'_>

Get the sample count slice

Source

pub fn insert_deep_frame(&mut self, frame: DeepFrame) -> Result<(), Error>

Trait Implementations§

Source§

impl Default for DeepFrameBuffer

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Drop for DeepFrameBuffer

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl OpaquePtr for DeepFrameBuffer

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.