#[repr(C)]pub struct SWGLCompositeSurfaceInfo {
pub yuv_planes: u32,
pub textures: [u32; 3],
pub color_space: YuvRangedColorSpace,
pub color_depth: ColorDepth,
pub size: DeviceIntSize,
}Expand description
Descriptor for a locked surface that will be directly composited by SWGL.
Fields§
§yuv_planes: u32The number of YUV planes in the surface. 0 indicates non-YUV BGRA. 1 is interleaved YUV. 2 is NV12. 3 is planar YUV.
textures: [u32; 3]Textures for planes of the surface, or 0 if not applicable.
color_space: YuvRangedColorSpaceColor space of surface if using a YUV format.
color_depth: ColorDepthColor depth of surface if using a YUV format.
size: DeviceIntSizeThe actual source surface size before transformation.
Auto Trait Implementations§
impl Freeze for SWGLCompositeSurfaceInfo
impl RefUnwindSafe for SWGLCompositeSurfaceInfo
impl Send for SWGLCompositeSurfaceInfo
impl Sync for SWGLCompositeSurfaceInfo
impl Unpin for SWGLCompositeSurfaceInfo
impl UnwindSafe for SWGLCompositeSurfaceInfo
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