[−][src]Struct azul_webrender::NativeSurfaceInfo
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]
fn clone(&self) -> NativeSurfaceInfo
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for NativeSurfaceInfo
[src]
Auto Trait Implementations
impl RefUnwindSafe for NativeSurfaceInfo
impl Send for NativeSurfaceInfo
impl Sync for NativeSurfaceInfo
impl Unpin for NativeSurfaceInfo
impl UnwindSafe for NativeSurfaceInfo
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,