pub struct SurfaceTexture(pub(crate) EGLSurfaceTexture);
Expand description
Represents an OpenGL texture that wraps a surface.
Reading from the associated OpenGL texture reads from the surface. It is undefined behavior to write to such a texture (e.g. by binding it to a framebuffer and rendering to that framebuffer).
Surface textures are local to a context, but that context does not have to be the same context
as that associated with the underlying surface. The texture must be destroyed with the
destroy_surface_texture()
method, or a panic will occur.
Tuple Fields§
§0: EGLSurfaceTexture
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for SurfaceTexture
impl !Send for SurfaceTexture
impl !Sync for SurfaceTexture
impl Unpin for SurfaceTexture
impl UnwindSafe for SurfaceTexture
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