pub struct OpenGLOwnedTextureFrameHandle { /* private fields */ }Expand description
RAII guard for an acquired OpenGL session-owned texture frame.
Releasing the guard ends the borrow of the backend OpenGL texture object.
Implementations§
Source§impl OpenGLOwnedTextureFrameHandle
impl OpenGLOwnedTextureFrameHandle
Sourcepub fn frame(&self) -> Result<&OpenGLOwnedTextureFrame>
pub fn frame(&self) -> Result<&OpenGLOwnedTextureFrame>
Returns copied metadata for this acquired frame.
pub fn is_closed(&self) -> bool
Sourcepub fn texture(&self) -> Result<FrameOpenGLTextureName<'_>>
pub fn texture(&self) -> Result<FrameOpenGLTextureName<'_>>
Returns the borrowed OpenGL texture object name for backend interop.
Sourcepub fn close(self) -> Result<(), HandleOperationError<Self>>
pub fn close(self) -> Result<(), HandleOperationError<Self>>
Explicitly releases this frame.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for OpenGLOwnedTextureFrameHandle
impl !RefUnwindSafe for OpenGLOwnedTextureFrameHandle
impl !Send for OpenGLOwnedTextureFrameHandle
impl !Sync for OpenGLOwnedTextureFrameHandle
impl Unpin for OpenGLOwnedTextureFrameHandle
impl UnsafeUnpin for OpenGLOwnedTextureFrameHandle
impl !UnwindSafe for OpenGLOwnedTextureFrameHandle
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