Struct imgui_wgpu::RendererConfig
source · [−]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
sourceimpl<'s> RendererConfig<'s>
impl<'s> RendererConfig<'s>
sourcepub fn with_shaders(shader: ShaderModuleDescriptor<'s>) -> Self
pub fn with_shaders(shader: ShaderModuleDescriptor<'s>) -> Self
Create a new renderer config with custom shaders.
sourceimpl RendererConfig<'_>
impl RendererConfig<'_>
Trait Implementations
sourceimpl Default for RendererConfig<'_>
impl Default for RendererConfig<'_>
Auto Trait Implementations
impl<'s> RefUnwindSafe for RendererConfig<'s>
impl<'s> Send for RendererConfig<'s>
impl<'s> Sync for RendererConfig<'s>
impl<'s> Unpin for RendererConfig<'s>
impl<'s> UnwindSafe for RendererConfig<'s>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more