Struct webrender_surfman::WebrenderSurfman[][src]

pub struct WebrenderSurfman(Rc<WebrenderSurfmanData>);

A bridge between webrender and surfman


impl WebrenderSurfman[src]

pub fn create(
    connection: &Connection,
    adapter: &Adapter,
    surface_type: SurfaceType<NativeWidget>
) -> Result<Self, Error>

pub fn create_surface_texture(
    surface: Surface
) -> Result<SurfaceTexture, (Error, Surface)>

pub fn destroy_surface_texture(
    surface_texture: SurfaceTexture
) -> Result<Surface, (Error, SurfaceTexture)>

pub fn make_gl_context_current(&self) -> Result<(), Error>[src]

pub fn swap_chain(&self) -> Result<&SwapChain<Device>, Error>[src]

pub fn resize(&self, size: Size2D<i32>) -> Result<(), Error>[src]

pub fn present(&self) -> Result<(), Error>[src]

pub fn with_front_buffer<F: FnMut(&Device, Surface) -> Surface>(&self, f: F)[src]

Invoke a closure with the surface associated with the current front buffer. This can be used to create a surfman::SurfaceTexture to blit elsewhere.

pub fn device(&self) -> Ref<'_, Device>[src]

pub fn connection(&self) -> Connection[src]

pub fn adapter(&self) -> Adapter[src]

pub fn native_context(&self) -> NativeContext[src]

pub fn native_device(&self) -> NativeDevice[src]

pub fn context_attributes(&self) -> ContextAttributes[src]

pub fn context_surface_info(&self) -> Result<Option<SurfaceInfo>, Error>[src]

pub fn surface_info(&self, surface: &Surface) -> SurfaceInfo[src]

pub fn surface_texture_object(&self, surface: &SurfaceTexture) -> u32[src]

pub fn get_proc_address(&self, name: &str) -> *const c_void[src]

Trait Implementations

impl Clone for WebrenderSurfman[src]

Auto Trait Implementations

impl !RefUnwindSafe for WebrenderSurfman

impl !Send for WebrenderSurfman

impl !Sync for WebrenderSurfman

impl Unpin for WebrenderSurfman

impl !UnwindSafe for WebrenderSurfman

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.