pub struct Surface<D: SurfaceMemoryDescriptor> { /* private fields */ }Expand description
An owned VA surface that is tied to a particular Display.
Implementations§
Source§impl<D: SurfaceMemoryDescriptor> Surface<D>
impl<D: SurfaceMemoryDescriptor> Surface<D>
pub fn display(&self) -> &Arc<Display> ⓘ
Sourcepub fn sync(&self) -> Result<(), VaError>
pub fn sync(&self) -> Result<(), VaError>
Wrapper around vaSyncSurface that blocks until all pending operations on the render
target have been completed.
Upon return it is safe to use the render target for a different picture.
Sourcepub fn export_prime(&self) -> Result<DrmPrimeSurfaceDescriptor, VaError>
pub fn export_prime(&self) -> Result<DrmPrimeSurfaceDescriptor, VaError>
Returns a PRIME descriptor for this surface.
Trait Implementations§
Auto Trait Implementations§
impl<D> Forget for Surface<D>
impl<D> Freeze for Surface<D>
impl<D> Move for Surface<D>
impl<D> RefUnwindSafe for Surface<D>
impl<D> Send for Surface<D>
impl<D> Sync for Surface<D>
impl<D> Unpin for Surface<D>
impl<D> UnsafeUnpin for Surface<D>where
*const ArcInner<Display> is !null: UnsafeUnpin,
PhantomData<ArcInner<Display>>: UnsafeUnpin,
D: UnsafeUnpin,
impl<D> UnwindSafe for Surface<D>
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