[][src]Struct webrender_surfman::WebrenderSurfman

pub struct WebrenderSurfman(Rc<WebrenderSurfmanData>);

A bridge between webrender and surfman

Implementations

impl WebrenderSurfman[src]

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

pub fn create_surface_texture(
    &self,
    surface: Surface
) -> Result<SurfaceTexture, (Error, Surface)>
[src]

pub fn destroy_surface_texture(
    &self,
    surface_texture: SurfaceTexture
) -> Result<Surface, (Error, SurfaceTexture)>
[src]

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 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
[src]

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.