[−][src]Struct imgui_gfx_hal::Renderer
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]
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>,
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]
&mut self,
ui: Ui,
frame: usize,
render_pass: &mut RenderSubpassCommon<B, C>,
device: &B::Device,
physical_device: &B::PhysicalDevice
) -> Result<(), Error>
Renders a frame.
pub fn destroy(self, device: &B::Device)
[src]
Destroys all used objects.
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,