pub enum SurfaceTextureDescriptor {
    TextureCache {
        handle: Option<WeakFreeListHandle<PictureCacheEntryMarker>>,
    },
    Native {
        id: Option<NativeTileId>,
    },
}Expand description
A descriptor for the kind of texture that a picture cache tile will be drawn into.
Variants§
TextureCache
When using the WR compositor, the tile is drawn into an entry in the WR texture cache.
Fields
§
handle: Option<WeakFreeListHandle<PictureCacheEntryMarker>>Native
When using an OS compositor, the tile is drawn into a native surface identified by arbitrary id.
Fields
§
id: Option<NativeTileId>The arbitrary id of this tile.
Implementations§
Source§impl SurfaceTextureDescriptor
 
impl SurfaceTextureDescriptor
Sourcepub fn resolve(
    &self,
    resource_cache: &ResourceCache,
    size: DeviceIntSize,
) -> ResolvedSurfaceTexture
 
pub fn resolve( &self, resource_cache: &ResourceCache, size: DeviceIntSize, ) -> ResolvedSurfaceTexture
Create a resolved surface texture for this descriptor
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SurfaceTextureDescriptor
impl RefUnwindSafe for SurfaceTextureDescriptor
impl Send for SurfaceTextureDescriptor
impl Sync for SurfaceTextureDescriptor
impl Unpin for SurfaceTextureDescriptor
impl UnwindSafe for SurfaceTextureDescriptor
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