[][src]Struct azul_webrender::NativeSurfaceInfo

#[repr(C)]pub struct NativeSurfaceInfo {
    pub origin: DeviceIntPoint,
    pub fbo_id: u32,
}

Information about a bound surface that the native compositor returns to WR.

Fields

origin: DeviceIntPoint

An offset into the surface that WR should draw. Some compositing implementations (notably, DirectComposition) use texture atlases when the surface sizes are small. In this case, an offset can be returned into the larger texture where WR should draw. This can be (0, 0) if texture atlases are not used.

fbo_id: u32

The ID of the FBO that WR should bind to, in order to draw to the bound surface. On Windows (ANGLE) this will always be 0, since creating a p-buffer sets the default framebuffer to be the DirectComposition surface. On Mac, this will be non-zero, since it identifies the IOSurface that has been bound to draw to.

Trait Implementations

impl Clone for NativeSurfaceInfo[src]

impl Copy for NativeSurfaceInfo[src]

Auto Trait Implementations

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.