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: Time) -> Result<LoaderEvent, Error>
pub fn wait_for_event(&self, deadline: Time) -> 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: Time) -> Result<Option<Vmo>, Error>
pub fn get(&self, name: &str, ___deadline: Time) -> 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: Time
) -> Result<Features, Error>
pub fn get_supported_features( &self, ___deadline: Time ) -> Result<Features, Error>
Returns the set of features the loader service supports.
sourcepub fn get_vmex_resource(
&self,
___deadline: Time
) -> Result<LoaderGetVmexResourceResult, Error>
pub fn get_vmex_resource( &self, ___deadline: Time ) -> 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
§type Proxy = LoaderProxy
type Proxy = LoaderProxy
§type Protocol = LoaderMarker
type Protocol = LoaderMarker
Proxy
controls.