Struct polystrip::Renderer[][src]

pub struct Renderer {
    pub instance: <Backend as Backend>::Instance,
    pub device: <Backend as Backend>::Device,
    pub queue_groups: RefCell<Vec<QueueGroup<Backend>>>,
    pub adapter: Adapter<Backend>,
    pub allocator: RefCell<GpuAllocator<<Backend as Backend>::Memory>>,
    // some fields omitted
}

Fields

instance: <Backend as Backend>::Instancedevice: <Backend as Backend>::Devicequeue_groups: RefCell<Vec<QueueGroup<Backend>>>adapter: Adapter<Backend>allocator: RefCell<GpuAllocator<<Backend as Backend>::Memory>>

Implementations

impl Renderer[src]

pub fn new() -> Renderer[src]

pub fn wrap(self) -> Rc<Renderer>[src]

Convenience method to create an Rc<Renderer> in a builder method chain. See also RendererBuilder::build_rc

pub fn wait_next_frame(&self) -> usize[src]

Waits for the next frame to finish rendering, deallocates its resources, and returns its index.

Generally, this won’t need to be called in application code, since it is done by RenderTargets before creating a Frame.

pub fn next_frame_idx(&self) -> usize[src]

Returns the index of the next frame to be rendered, to be used when selecting the command buffer, semaphores and fences.

Trait Implementations

impl Drop for Renderer[src]

Auto Trait Implementations

impl !RefUnwindSafe for Renderer

impl Send for Renderer

impl !Sync for Renderer

impl Unpin for Renderer

impl !UnwindSafe for Renderer

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.