[−][src]Struct imgui_wgpu::RendererConfig
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]
vertex_shader: ShaderModuleSource<'vs>,
fragment_shader: ShaderModuleSource<'fs>
) -> RendererConfig<'vs, 'fs>
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]
self,
imgui: &mut Context,
device: &Device,
queue: &Queue
) -> Renderer
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,