Struct imgui_wgpu::RendererConfig[][src]

pub struct RendererConfig<'s> {
    pub texture_format: TextureFormat,
    pub depth_format: Option<TextureFormat>,
    pub sample_count: u32,
    pub shader: Option<ShaderModuleDescriptor<'s>>,
    pub vertex_shader_entry_point: Option<&'s str>,
    pub fragment_shader_entry_point: Option<&'s str>,
}
Expand description

Configuration for the renderer.

Fields

texture_format: TextureFormatdepth_format: Option<TextureFormat>sample_count: u32shader: Option<ShaderModuleDescriptor<'s>>vertex_shader_entry_point: Option<&'s str>fragment_shader_entry_point: Option<&'s str>

Implementations

Create a new renderer config with custom shaders.

Create a new renderer config with precompiled default shaders outputting linear color.

If you write to a Bgra8UnormSrgb framebuffer, this is what you want.

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

Create a new renderer config with precompiled default shaders outputting linear color.

If you write to a Bgra8UnormSrgb framebuffer, this is what you want.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.