#[repr(C)]pub struct NativeSurfaceInfo {
pub origin: DeviceIntPoint,
pub fbo_id: u32,
}
Expand description
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§
Source§impl Clone for NativeSurfaceInfo
impl Clone for NativeSurfaceInfo
Source§fn clone(&self) -> NativeSurfaceInfo
fn clone(&self) -> NativeSurfaceInfo
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for NativeSurfaceInfo
Auto Trait Implementations§
impl Freeze for NativeSurfaceInfo
impl RefUnwindSafe for NativeSurfaceInfo
impl Send for NativeSurfaceInfo
impl Sync for NativeSurfaceInfo
impl Unpin for NativeSurfaceInfo
impl UnwindSafe for NativeSurfaceInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more