pub struct PostProcessingRenderer { /* private fields */ }Implementations§
Source§impl PostProcessingRenderer
impl PostProcessingRenderer
pub fn new( device: Arc<Device>, memory_allocator: Arc<StandardMemoryAllocator>, descriptor_set_allocator: Arc<StandardDescriptorSetAllocator>, ) -> Result<Self, Box<dyn Error>>
pub fn ensure_window_targets( &mut self, frame_count: usize, extent: [u32; 2], color_format: Format, msaa_samples: SampleCount, config: &PostProcessingConfig, ) -> Result<(), Box<dyn Error>>
pub fn ensure_xr_targets( &mut self, view_count: usize, extent: [u32; 2], color_format: Format, msaa_samples: SampleCount, config: &PostProcessingConfig, ) -> Result<(), Box<dyn Error>>
pub fn window_frame_targets( &self, frame: usize, ) -> Option<&PostProcessFrameTargets>
pub fn xr_frame_targets(&self, eye: usize) -> Option<&PostProcessFrameTargets>
pub fn record_blur_pass( &mut self, cbb: &mut AutoCommandBufferBuilder<PrimaryAutoCommandBuffer>, color_format: Format, source: Arc<ImageView>, destination: Arc<ImageView>, extent: [u32; 2], direction: [f32; 2], radius_pixels: u32, ) -> Result<(), Box<dyn Error>>
pub fn record_final_pass( &mut self, cbb: &mut AutoCommandBufferBuilder<PrimaryAutoCommandBuffer>, color_format: Format, output: Arc<ImageView>, extent: [u32; 2], main_color: Arc<ImageView>, bloom_color: Option<Arc<ImageView>>, config: &PostProcessingConfig, ) -> Result<(), Box<dyn Error>>
Auto Trait Implementations§
impl !RefUnwindSafe for PostProcessingRenderer
impl !UnwindSafe for PostProcessingRenderer
impl Freeze for PostProcessingRenderer
impl Send for PostProcessingRenderer
impl Sync for PostProcessingRenderer
impl Unpin for PostProcessingRenderer
impl UnsafeUnpin for PostProcessingRenderer
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.