pub struct LoaderSynchronousProxy { /* private fields */ }
Implementations§
Source§impl LoaderSynchronousProxy
impl LoaderSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<LoaderEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<LoaderEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn get(
&self,
name: &str,
___deadline: MonotonicInstant,
) -> Result<Option<Vmo>, Error>
pub fn get( &self, name: &str, ___deadline: MonotonicInstant, ) -> Result<Option<Vmo>, Error>
Requests a client driver library with the given name from the Vulkan loader service. Returns a VMO suitable for loading as a dynamic library on success, a null handle on failure.
Sourcepub fn connect_to_manifest_fs(
&self,
options: ConnectToManifestOptions,
channel: Channel,
) -> Result<(), Error>
pub fn connect_to_manifest_fs( &self, options: ConnectToManifestOptions, channel: Channel, ) -> Result<(), Error>
Connects to a FS serving fuchsia.io containing all Vulkan ICD manifests.
See
https://github.com/KhronosGroup/Vulkan-Loader/blob/master/loader/LoaderAndLayerInterface.md#icd-manifest-file-format
for a description of the manifest file format. Manifests will always
appear in this directory after the relevant device appears in
ConnectToDeviceFs()
.
Sourcepub fn connect_to_device_fs(&self, channel: Channel) -> Result<(), Error>
pub fn connect_to_device_fs(&self, channel: Channel) -> Result<(), Error>
Connects to a FS serving fuchsia.io containing all device nodes
potentially relevant to ICDs. /dev/
Sourcepub fn get_supported_features(
&self,
___deadline: MonotonicInstant,
) -> Result<Features, Error>
pub fn get_supported_features( &self, ___deadline: MonotonicInstant, ) -> Result<Features, Error>
Returns the set of features the loader service supports.
Sourcepub fn get_vmex_resource(
&self,
___deadline: MonotonicInstant,
) -> Result<LoaderGetVmexResourceResult, Error>
pub fn get_vmex_resource( &self, ___deadline: MonotonicInstant, ) -> Result<LoaderGetVmexResourceResult, Error>
Returns a VmexResource that can be used by Lavapipe to JIT-compile code in the client process, or an error.
Trait Implementations§
Source§impl Debug for LoaderSynchronousProxy
impl Debug for LoaderSynchronousProxy
Source§impl SynchronousProxy for LoaderSynchronousProxy
impl SynchronousProxy for LoaderSynchronousProxy
Source§type Proxy = LoaderProxy
type Proxy = LoaderProxy
Source§type Protocol = LoaderMarker
type Protocol = LoaderMarker
Proxy
controls.