pub struct Presenter { /* private fields */ }Implementations§
Source§impl Presenter
impl Presenter
pub fn new(format: TextureFormat) -> Result<Self, PassError>
pub fn attach(&mut self, gpu: &GpuContext) -> Result<(), PassExecutionError>
pub fn register_pass( &mut self, pass: Box<dyn FramePass>, ) -> Result<(), PassError>
pub fn uploads(&self) -> u64
pub fn sections(&self) -> &[Section]
pub fn after_submit(&mut self)
pub fn upload( &mut self, device: &Device, queue: &Queue, eye: &Eye, viewport: Vec2, views: &[PublishedView], )
pub fn record_scene( &mut self, device: &Device, encoder: &mut CommandEncoder, target: &TextureView, size: (u32, u32), background: Color, ) -> Result<(), PassExecutionError>
Sourcepub fn record_overlays(
&mut self,
encoder: &mut CommandEncoder,
target: &TextureView,
size: (u32, u32),
) -> Result<(), PassExecutionError>
pub fn record_overlays( &mut self, encoder: &mut CommandEncoder, target: &TextureView, size: (u32, u32), ) -> Result<(), PassExecutionError>
Call after record_scene with the same target and encoder.
Auto Trait Implementations§
impl Freeze for Presenter
impl !RefUnwindSafe for Presenter
impl !Send for Presenter
impl !Sync for Presenter
impl Unpin for Presenter
impl UnsafeUnpin for Presenter
impl !UnwindSafe for Presenter
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