pub struct Renderer {
pub device: Device,
pub queue: Queue,
/* private fields */
}Fields§
§device: Device§queue: QueueImplementations§
Source§impl Renderer
impl Renderer
pub async fn new() -> Result<Self>
pub fn from_device(device: Device, queue: Queue) -> Self
pub fn prepare_plan(&mut self, plan: &RenderPlan) -> Result<()>
pub fn texture_view(&self, id: TextureId) -> Option<&TextureView>
pub fn texture(&self, id: TextureId) -> Option<&Texture>
pub fn texture_arc(&self, id: TextureId) -> Option<Arc<Texture>>
pub fn replace_texture( &mut self, id: TextureId, texture: Texture, desc: TextureDesc, ) -> Result<Arc<Texture>>
pub fn replace_texture_arc( &mut self, id: TextureId, texture: Arc<Texture>, desc: TextureDesc, ) -> Result<Arc<Texture>>
pub fn replace_texture_discard_old( &mut self, id: TextureId, texture: Texture, desc: TextureDesc, ) -> Result<()>
pub fn copy_texture_to_external( &self, source_id: TextureId, destination: &Texture, ) -> Result<SubmissionIndex>
pub fn copy_texture_to_external_discard_submission( &self, source_id: TextureId, destination: &Texture, ) -> Result<()>
pub fn buffer(&self, id: BufferId) -> Option<&Buffer>
pub fn execute( &mut self, plan: &RenderPlan, update: &FrameUpdate<'_>, ) -> Result<SubmissionIndex>
pub fn apply_frame_update( &mut self, plan: &RenderPlan, update: &FrameUpdate<'_>, ) -> Result<()>
pub fn submit_plan(&mut self, plan: &RenderPlan) -> Result<SubmissionIndex>
pub fn execute_discard_submission( &mut self, plan: &RenderPlan, update: &FrameUpdate<'_>, ) -> Result<()>
Auto Trait Implementations§
impl Freeze for Renderer
impl !RefUnwindSafe for Renderer
impl Send for Renderer
impl Sync for Renderer
impl Unpin for Renderer
impl UnsafeUnpin for Renderer
impl !UnwindSafe for Renderer
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