[][src]Struct imgui_gfx_hal::Renderer

pub struct Renderer<B: Backend> { /* fields omitted */ }

Methods

impl<B: Backend> Renderer<B>[src]

pub fn new<C>(
    imgui: &mut ImGui,
    device: &B::Device,
    physical_device: &B::PhysicalDevice,
    render_pass: &B::RenderPass,
    subpass_index: usize,
    max_frames: usize,
    command_pool: &mut CommandPool<B, C>,
    queue: &mut CommandQueue<B, C>
) -> Result<Renderer<B>, Error> where
    C: Capability + Supports<Transfer>, 
[src]

Initializes the renderer.

pub fn render<C: BorrowMut<B::CommandBuffer>>(
    &mut self,
    ui: Ui,
    frame: usize,
    render_pass: &mut RenderSubpassCommon<B, C>,
    device: &B::Device,
    physical_device: &B::PhysicalDevice
) -> Result<(), Error>
[src]

Renders a frame.

pub fn destroy(self, device: &B::Device)[src]

Destroys all used objects.

Auto Trait Implementations

impl<B> !Send for Renderer<B>

impl<B> !Sync for Renderer<B>

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Supports for T[src]