[][src]Struct imgui_wgpu::RendererConfig

pub struct RendererConfig<'vs, 'fs> { /* fields omitted */ }

Congiguration for the renderer.

Implementations

impl<'_, '_> RendererConfig<'_, '_>[src]

pub fn with_shaders<'vs, 'fs>(
    vertex_shader: ShaderModuleSource<'vs>,
    fragment_shader: ShaderModuleSource<'fs>
) -> RendererConfig<'vs, 'fs>
[src]

Create a new renderer config with custom shaders.

pub fn new() -> RendererConfig<'static, 'static>[src]

Create a new renderer config with precompiled default shaders.

pub fn new_glsl() -> RendererConfig<'static, 'static>[src]

Create a new renderer config with newly compiled shaders.

pub fn set_texture_format(self, texture_format: TextureFormat) -> Self[src]

Set the texture format used by the renderer.

pub fn set_depth_format(self, depth_format: TextureFormat) -> Self[src]

Set the depth format used by the renderer.

pub fn set_sample_count(self, sample_count: u32) -> Self[src]

Set the sample count used by the renderer.

pub fn build(
    self,
    imgui: &mut Context,
    device: &Device,
    queue: &Queue
) -> Renderer
[src]

Build a new Renderer consuming this config.

Auto Trait Implementations

impl<'vs, 'fs> RefUnwindSafe for RendererConfig<'vs, 'fs>

impl<'vs, 'fs> Send for RendererConfig<'vs, 'fs>

impl<'vs, 'fs> Sync for RendererConfig<'vs, 'fs>

impl<'vs, 'fs> Unpin for RendererConfig<'vs, 'fs>

impl<'vs, 'fs> UnwindSafe for RendererConfig<'vs, 'fs>

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> Instrument 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,