pub struct ProxyInstanceOwner { /* private fields */ }Expand description
Owns the Vulkan instance created by the Streamline interposer.
Shut Streamline down after GPU completion but before destroying child devices, then drop the
imported instance wrappers and all children before dropping this owner. The owner retains the
interposer loader and ash instance, independently of the vk-graph feature. If Streamline is
still active or the thread is panicking, dropping the owner intentionally leaks the native proxy
and context. Child lifetimes are the caller’s responsibility; they are not tracked by this owner.
Implementations§
Source§impl ProxyInstanceOwner
impl ProxyInstanceOwner
Sourcepub fn evaluator(&self) -> Evaluator
pub fn evaluator(&self) -> Evaluator
§Panics
Panics if the internal owner invariant is violated.
Sourcepub unsafe fn instance(&self) -> &Instance
pub unsafe fn instance(&self) -> &Instance
§Safety
Do not destroy this instance yourself. This owner must outlive all instance clones, function pointers, and child objects. After GPU completion, shut the evaluator down before destroying child devices, then destroy all children before dropping this owner.
§Panics
Panics if the internal owner invariant is violated.