[][src]Struct webrender::Renderer

pub struct Renderer {
    pub device: Device,
    pub gpu_glyph_renderer: GpuGlyphRenderer,
    pub gpu_profile: GpuProfiler<GpuProfileTag>,
    pub renderer_errors: Vec<RendererError>,
    // some fields omitted
}

The renderer is responsible for submitting to the GPU the work prepared by the RenderBackend.

Fields

Methods

impl Renderer
[src]

Initializes webrender and creates a Renderer and RenderApiSender.

Examples

Initializes a Renderer with some reasonable values. For more information see RendererOptions.

This example is not tested
let opts = webrender::RendererOptions {
   device_pixel_ratio: 1.0,
   resource_override_path: None,
   enable_aa: false,
};
let (renderer, sender) = Renderer::new(opts);

Returns the Epoch of the current frame in a pipeline.

Processes the result queue.

Should be called before render(), as texture cache updates are done here.

Set a callback for handling external images.

Set a callback for handling external outputs.

Retrieve (and clear) the current list of recorded frame profiles.

Renders the current frame.

A Frame is supplied by calling [generate_frame()][genframe]. [genframe]: ../../webrender_api/struct.DocumentApi.html#method.generate_frame

Pass-through to Device::read_pixels_into, used by Gecko's WR bindings.

Collects a memory report.

Auto Trait Implementations

impl !Send for Renderer

impl !Sync for Renderer

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more