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: TextureFormat
depth_format: Option<TextureFormat>
sample_count: u32
shader: 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.