pub struct GpuCompositionRenderer { /* private fields */ }Implementations§
Source§impl GpuCompositionRenderer
impl GpuCompositionRenderer
pub async fn new() -> Result<Self, LumenError>
pub fn from_device(device: Device, queue: Queue) -> Self
pub fn compile(&mut self, composition: &Composition) -> Result<(), LumenError>
pub fn compile_with_output_format( &mut self, composition: &Composition, output_format: TextureFormat, ) -> Result<(), LumenError>
pub fn compile_with_media<M: MediaStore>( &mut self, composition: &Composition, media: &M, output_format: TextureFormat, ) -> Result<(), LumenError>
pub fn precompile_frame<M: MediaStore>( &mut self, composition: &Composition, frame: u32, media: &M, ) -> Result<(), LumenError>
pub fn precompile_frame_window<M: MediaStore>( &mut self, composition: &Composition, start_frame: u32, frame_count: u32, media: &M, ) -> Result<(), LumenError>
pub fn render_frame<M: MediaStore>( &mut self, composition: &Composition, frame: u32, media: &M, ) -> Result<RasterHandle, LumenError>
pub fn render_frame_submitted<M: MediaStore>( &mut self, composition: &Composition, frame: u32, media: &M, ) -> Result<(RasterHandle, SubmissionIndex), LumenError>
pub fn render_frame_into_external<M: MediaStore>( &mut self, composition: &Composition, frame: u32, media: &M, external: ExternalTexture, ) -> Result<SubmittedExternalTexture, LumenError>
pub fn bind_frame<M: MediaStore>( &mut self, composition: &Composition, frame: u32, media: &M, ) -> Result<BoundFrame, LumenError>
pub fn submit_bound_frame( &mut self, bound: &BoundFrame, ) -> Result<(RasterHandle, SubmissionIndex), LumenError>
pub fn upload_bound_frame( &mut self, bound: &BoundFrame, ) -> Result<(), LumenError>
pub fn submit_render( &mut self, ) -> Result<(RasterHandle, SubmissionIndex), LumenError>
pub fn gpu_renderer(&self) -> &Renderer
pub fn gpu_renderer_mut(&mut self) -> &mut Renderer
pub fn compiled(&self) -> Option<&CompiledComposition>
Auto Trait Implementations§
impl !RefUnwindSafe for GpuCompositionRenderer
impl !UnwindSafe for GpuCompositionRenderer
impl Freeze for GpuCompositionRenderer
impl Send for GpuCompositionRenderer
impl Sync for GpuCompositionRenderer
impl Unpin for GpuCompositionRenderer
impl UnsafeUnpin for GpuCompositionRenderer
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