pub struct WgpuRenderer { /* private fields */ }Implementations§
Source§impl WgpuRenderer
impl WgpuRenderer
pub fn new() -> WgpuRenderer
pub fn with_feathering(self, feathering: FeatheringOptions) -> WgpuRenderer
pub fn with_feathering_enabled(self, enabled: bool) -> WgpuRenderer
pub fn with_text_coverage_policy( self, policy: TextCoveragePolicy, ) -> WgpuRenderer
pub fn with_text_render_mode(self, mode: TextRenderMode) -> WgpuRenderer
pub fn with_text_subpixel_order(self, order: TextSubpixelOrder) -> WgpuRenderer
pub fn with_text_hinting(self, hinting: TextHinting) -> WgpuRenderer
pub fn with_stem_darkening(self, darkening: StemDarkening) -> WgpuRenderer
pub fn with_feather_width(self, feather_width: f32) -> WgpuRenderer
pub fn with_vsync_enabled(self, enabled: bool) -> WgpuRenderer
pub fn with_external_texture_registry( self, registry: WgpuExternalTextureRegistry, ) -> WgpuRenderer
pub fn feathering(&self) -> FeatheringOptions
pub fn feathering_enabled(&self) -> bool
pub fn feather_width(&self) -> f32
pub fn vsync_enabled(&self) -> bool
pub fn external_texture_registry(&self) -> Option<&WgpuExternalTextureRegistry>
pub fn set_external_texture_registry( &mut self, registry: WgpuExternalTextureRegistry, )
pub fn text_coverage_policy(&self) -> TextCoveragePolicy
pub fn text_render_mode(&self) -> TextRenderMode
pub fn text_subpixel_order(&self) -> TextSubpixelOrder
pub fn text_hinting(&self) -> TextHinting
pub fn stem_darkening(&self) -> StemDarkening
pub fn set_feathering(&mut self, feathering: FeatheringOptions)
pub fn set_feathering_enabled(&mut self, enabled: bool)
pub fn set_text_coverage_policy(&mut self, policy: TextCoveragePolicy)
pub fn set_text_render_mode(&mut self, mode: TextRenderMode)
pub fn set_text_subpixel_order(&mut self, order: TextSubpixelOrder)
pub fn set_text_hinting(&mut self, hinting: TextHinting)
pub fn set_stem_darkening(&mut self, darkening: StemDarkening)
pub fn set_feather_width(&mut self, feather_width: f32)
pub fn set_vsync_enabled(&mut self, enabled: bool)
pub fn set_window_display_capabilities( &mut self, window_id: WindowId, capabilities: DisplayCapabilities, ) -> Result<(), Error>
pub fn window_display_capabilities( &self, window_id: WindowId, ) -> Option<DisplayCapabilities>
pub fn set_window_color_management( &mut self, window_id: WindowId, color_management: ColorManagementMode, ) -> Result<(), Error>
pub fn window_output_strategy( &self, window_id: WindowId, ) -> Option<OutputStrategy>
pub fn window_surface_formats( &self, window_id: WindowId, ) -> Option<Vec<TextureFormat>>
pub fn set_runtime_feathering_override( &mut self, feathering: Option<FeatheringOptions>, )
pub fn set_runtime_text_subpixel_order_override( &mut self, order: Option<TextSubpixelOrder>, )
pub fn set_runtime_text_hinting_override( &mut self, hinting: Option<TextHinting>, )
pub fn set_runtime_stem_darkening_override( &mut self, darkening: Option<StemDarkening>, )
pub fn set_runtime_text_coverage_policy_override( &mut self, policy: Option<TextCoveragePolicy>, )
pub fn set_runtime_diagnostics_enabled(&mut self, enabled: bool)
pub fn register_window( &mut self, window_id: WindowId, window: Arc<Window>, ) -> Result<(), Error>
pub fn remove_window(&mut self, window_id: WindowId)
pub fn render(&mut self, frame: &SceneFrame) -> Result<(), Error>
pub fn capabilities(&self) -> RendererCapabilities
pub fn frames_rendered(&self) -> usize
pub fn last_frame(&self, window_id: WindowId) -> Option<&SceneFrame>
pub fn last_frame_stats( &self, window_id: WindowId, ) -> Option<RendererFrameStats>
pub fn text_cache_snapshot( &self, window_id: WindowId, ) -> RendererTextCacheSnapshot
pub fn capture_last_frame_rgba( &mut self, window_id: WindowId, ) -> Result<RgbaImage, Error>
pub fn capture_last_frame_debug( &mut self, window_id: WindowId, request: DebugCaptureRequest, ) -> Result<DebugCaptureArtifact, Error>
pub fn capture_debug_frame( &self, window_id: WindowId, request: DebugCaptureRequest, ) -> Result<DebugCaptureArtifact, Error>
pub fn capture_rgba(&self, window_id: WindowId) -> Result<RgbaImage, Error>
pub fn capture_hdr_intermediate_rgba_f32( &self, window_id: WindowId, ) -> Result<HdrRgbaImage, Error>
Trait Implementations§
Source§impl Debug for WgpuRenderer
impl Debug for WgpuRenderer
Source§impl Default for WgpuRenderer
impl Default for WgpuRenderer
Source§fn default() -> WgpuRenderer
fn default() -> WgpuRenderer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for WgpuRenderer
impl !RefUnwindSafe for WgpuRenderer
impl !UnwindSafe for WgpuRenderer
impl Send for WgpuRenderer
impl Sync for WgpuRenderer
impl Unpin for WgpuRenderer
impl UnsafeUnpin for WgpuRenderer
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.