pub struct DeepFrameBuffer { /* private fields */ }Implementations§
Source§impl DeepFrameBuffer
impl DeepFrameBuffer
Sourcepub fn new() -> DeepFrameBuffer
pub fn new() -> DeepFrameBuffer
Create a new DeepFrameBuffer.
Sourcepub fn insert(&mut self, name: &str, slice: &DeepSlice) -> Result<(), Error>
pub fn insert(&mut self, name: &str, slice: &DeepSlice) -> Result<(), Error>
Insert a DeepSlice into the DeepFrameBuffer.
§Errors
Error::InvalidArgument- if name is the empty string
Sourcepub fn get_slice<'a>(&'a self, name: &str) -> Option<DeepSliceRef<'a>>
pub fn get_slice<'a>(&'a self, name: &str) -> Option<DeepSliceRef<'a>>
Sourcepub fn get_slice_mut<'a>(
&'a mut self,
name: &str,
) -> Option<DeepSliceRefMut<'a>>
pub fn get_slice_mut<'a>( &'a mut self, name: &str, ) -> Option<DeepSliceRefMut<'a>>
Sourcepub fn iter(&self) -> DeepFrameBufferIter<'_> ⓘ
pub fn iter(&self) -> DeepFrameBufferIter<'_> ⓘ
Get an iterator over the DeepSlices in this DeepFrameBuffer
Sourcepub fn set_sample_count_slice(
&mut self,
sample_count_slice: &Slice,
) -> Result<(), Error>
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
Error::InvalidArgument- if the type of the slice is notPixelType::Uint
Sourcepub fn set_sample_count_frame(&mut self, frame: Frame) -> Result<(), Error>
pub fn set_sample_count_frame(&mut self, frame: Frame) -> Result<(), Error>
Set a Frame to hold the per-pixel sample
counts
pub fn sample_count_frame(&self) -> Option<&Frame>
Sourcepub fn sample_count_slice(&self) -> SliceRef<'_>
pub fn sample_count_slice(&self) -> SliceRef<'_>
Get the sample count slice
pub fn insert_deep_frame(&mut self, frame: DeepFrame) -> Result<(), Error>
Trait Implementations§
Source§impl Default for DeepFrameBuffer
impl Default for DeepFrameBuffer
Source§impl Drop for DeepFrameBuffer
impl Drop for DeepFrameBuffer
Source§impl OpaquePtr for DeepFrameBuffer
impl OpaquePtr for DeepFrameBuffer
Auto Trait Implementations§
impl Freeze for DeepFrameBuffer
impl RefUnwindSafe for DeepFrameBuffer
impl !Send for DeepFrameBuffer
impl !Sync for DeepFrameBuffer
impl Unpin for DeepFrameBuffer
impl UnwindSafe for DeepFrameBuffer
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