Struct fidl_fuchsia_vulkan_loader::LoaderProxy
source · pub struct LoaderProxy { /* private fields */ }
Implementations§
source§impl LoaderProxy
impl LoaderProxy
sourcepub fn take_event_stream(&self) -> LoaderEventStream
pub fn take_event_stream(&self) -> LoaderEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
sourcepub fn get(&self, name: &str) -> QueryResponseFut<Option<Vmo>>
pub fn get(&self, name: &str) -> QueryResponseFut<Option<Vmo>>
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) -> QueryResponseFut<Features>
pub fn get_supported_features(&self) -> QueryResponseFut<Features>
Returns the set of features the loader service supports.
sourcepub fn get_vmex_resource(&self) -> QueryResponseFut<LoaderGetVmexResourceResult>
pub fn get_vmex_resource(&self) -> QueryResponseFut<LoaderGetVmexResourceResult>
Returns a VmexResource that can be used by Lavapipe to JIT-compile code in the client process, or an error.
Trait Implementations§
source§impl Clone for LoaderProxy
impl Clone for LoaderProxy
source§fn clone(&self) -> LoaderProxy
fn clone(&self) -> LoaderProxy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LoaderProxy
impl Debug for LoaderProxy
source§impl LoaderProxyInterface for LoaderProxy
impl LoaderProxyInterface for LoaderProxy
type GetResponseFut = QueryResponseFut<Option<Vmo>>
fn get(&self, name: &str) -> Self::GetResponseFut
fn connect_to_manifest_fs( &self, options: ConnectToManifestOptions, channel: Channel ) -> Result<(), Error>
fn connect_to_device_fs(&self, channel: Channel) -> Result<(), Error>
type GetSupportedFeaturesResponseFut = QueryResponseFut<Features>
fn get_supported_features(&self) -> Self::GetSupportedFeaturesResponseFut
type GetVmexResourceResponseFut = QueryResponseFut<Result<Resource, GetVmexResourceError>>
fn get_vmex_resource(&self) -> Self::GetVmexResourceResponseFut
source§impl Proxy for LoaderProxy
impl Proxy for LoaderProxy
§type Protocol = LoaderMarker
type Protocol = LoaderMarker
Proxy
controls.