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§
source§impl<'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.
source§impl RendererConfig<'_>
impl RendererConfig<'_>
Trait Implementations§
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more