Struct webrender::composite::NativeSurfaceInfo
source · #[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> 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