pub enum LoaderRequest {
Get {
name: String,
responder: LoaderGetResponder,
},
ConnectToManifestFs {
options: ConnectToManifestOptions,
channel: Channel,
control_handle: LoaderControlHandle,
},
ConnectToDeviceFs {
channel: Channel,
control_handle: LoaderControlHandle,
},
GetSupportedFeatures {
responder: LoaderGetSupportedFeaturesResponder,
},
GetVmexResource {
responder: LoaderGetVmexResourceResponder,
},
}
Expand description
Service to provide Vulkan libraries to the loader.
Variants§
Get
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.
ConnectToManifestFs
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()
.
ConnectToDeviceFs
Connects to a FS serving fuchsia.io containing all device nodes
potentially relevant to ICDs. /dev/
GetSupportedFeatures
Returns the set of features the loader service supports.
Fields
responder: LoaderGetSupportedFeaturesResponder
GetVmexResource
Returns a VmexResource that can be used by Lavapipe to JIT-compile code in the client process, or an error.
Fields
responder: LoaderGetVmexResourceResponder
Implementations§
Source§impl LoaderRequest
impl LoaderRequest
pub fn into_get(self) -> Option<(String, LoaderGetResponder)>
pub fn into_connect_to_manifest_fs( self, ) -> Option<(ConnectToManifestOptions, Channel, LoaderControlHandle)>
pub fn into_connect_to_device_fs(self) -> Option<(Channel, LoaderControlHandle)>
pub fn into_get_supported_features( self, ) -> Option<LoaderGetSupportedFeaturesResponder>
pub fn into_get_vmex_resource(self) -> Option<LoaderGetVmexResourceResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL