pub struct VulkanOwnedTextureFrameHandle { /* private fields */ }Expand description
RAII guard for an acquired Vulkan session-owned texture frame.
Releasing the guard ends the borrow of the backend Vulkan image, image view, and device.
Implementations§
Source§impl VulkanOwnedTextureFrameHandle
impl VulkanOwnedTextureFrameHandle
Sourcepub fn frame(&self) -> Result<&VulkanOwnedTextureFrame>
pub fn frame(&self) -> Result<&VulkanOwnedTextureFrame>
Returns copied metadata for this acquired frame.
pub fn is_closed(&self) -> bool
Sourcepub unsafe fn image(&self) -> Result<FrameNativePointer<'_>>
pub unsafe fn image(&self) -> Result<FrameNativePointer<'_>>
Returns the borrowed Vulkan image pointer for backend interop.
§Safety
The returned pointer is valid only while this frame handle remains open. The caller must not store or use it after frame release and must satisfy Vulkan synchronization and thread-affinity requirements.
Sourcepub unsafe fn image_view(&self) -> Result<FrameNativePointer<'_>>
pub unsafe fn image_view(&self) -> Result<FrameNativePointer<'_>>
Returns the borrowed Vulkan image view pointer for backend interop.
§Safety
The returned pointer has the same lifetime and synchronization
requirements as VulkanOwnedTextureFrameHandle::image.
Sourcepub unsafe fn device(&self) -> Result<FrameNativePointer<'_>>
pub unsafe fn device(&self) -> Result<FrameNativePointer<'_>>
Returns the borrowed Vulkan device pointer for backend interop.
§Safety
The returned pointer has the same lifetime and synchronization
requirements as VulkanOwnedTextureFrameHandle::image.
Sourcepub fn close(self) -> Result<(), HandleOperationError<Self>>
pub fn close(self) -> Result<(), HandleOperationError<Self>>
Explicitly releases this frame.