pub struct RadiantRenderManager {
pub config: SurfaceConfiguration,
pub surface: Surface,
pub device: Device,
pub queue: Queue,
pub renderer: RadiantRenderer,
pub offscreen_renderer: RadiantRenderer,
pub current_view: Option<TextureView>,
pub current_texture: Option<SurfaceTexture>,
/* private fields */
}
Fields§
§config: SurfaceConfiguration
§surface: Surface
§device: Device
§queue: Queue
§renderer: RadiantRenderer
§offscreen_renderer: RadiantRenderer
§current_view: Option<TextureView>
§current_texture: Option<SurfaceTexture>
Implementations§
Source§impl RadiantRenderManager
impl RadiantRenderManager
pub fn new( config: SurfaceConfiguration, surface: Surface, device: Device, queue: Queue, font_image_delta: Option<ImageDelta>, ) -> Self
pub fn resize(&mut self, new_size: [u32; 2])
pub fn update_textures(&mut self, delta: TexturesDelta)
pub fn render( &mut self, primitives: Vec<ClippedPrimitive>, screen_descriptor: &ScreenDescriptor, selection: bool, ) -> Result<(), SurfaceError>
pub async fn render_offscreen( &mut self, primitives: Vec<ClippedPrimitive>, screen_descriptor: &ScreenDescriptor, selection: bool, mouse_position: [f32; 2], ) -> Result<u64, SurfaceError>
Auto Trait Implementations§
impl !Freeze for RadiantRenderManager
impl !RefUnwindSafe for RadiantRenderManager
impl Send for RadiantRenderManager
impl Sync for RadiantRenderManager
impl Unpin for RadiantRenderManager
impl !UnwindSafe for RadiantRenderManager
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