Struct imgui_wgpu::RendererConfig [−][src]
Configuration for the renderer.
Fields
texture_format: TextureFormat
depth_format: Option<TextureFormat>
sample_count: u32
vertex_shader: Option<ShaderModuleDescriptor<'vs>>
fragment_shader: Option<ShaderModuleDescriptor<'fs>>
Implementations
impl RendererConfig<'_, '_>
[src]
pub fn with_shaders<'vs, 'fs>(
vertex_shader: ShaderModuleDescriptor<'vs>,
fragment_shader: ShaderModuleDescriptor<'fs>
) -> RendererConfig<'vs, 'fs>
[src]
vertex_shader: ShaderModuleDescriptor<'vs>,
fragment_shader: ShaderModuleDescriptor<'fs>
) -> RendererConfig<'vs, 'fs>
Create a new renderer config with custom shaders.
impl RendererConfig<'_, '_>
[src]
pub fn new() -> Self
[src]
Create a new renderer config with precompiled default shaders outputting linear color.
If you write to a Bgra8UnormSrgb framebuffer, this is what you want.
pub fn new_srgb() -> Self
[src]
Create a new renderer config with precompiled default shaders outputting srgb color.
If you write to a Bgra8Unorm framebuffer, this is what you want.
Trait Implementations
impl Default for RendererConfig<'_, '_>
[src]
Auto Trait Implementations
impl<'vs, 'fs> RefUnwindSafe for RendererConfig<'vs, 'fs>
[src]
impl<'vs, 'fs> Send for RendererConfig<'vs, 'fs>
[src]
impl<'vs, 'fs> Sync for RendererConfig<'vs, 'fs>
[src]
impl<'vs, 'fs> Unpin for RendererConfig<'vs, 'fs>
[src]
impl<'vs, 'fs> UnwindSafe for RendererConfig<'vs, 'fs>
[src]
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> Downcast<T> for T
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.