fuchsia.vulkan.loader

Added: 11

PROTOCOLS

Loader

Defined in fuchsia.vulkan.loader/loader.fidl

Service to provide Vulkan libraries to the loader.

ConnectToDeviceFs

Connects to a FS serving fuchsia.io containing all device nodes potentially relevant to ICDs. /dev/ will be served under in this directory.

Request

NameType
channel handle<channel>

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().

Request

NameType
options ConnectToManifestOptions
channel handle<channel>

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.

Request

NameType
name string[64]

Response

NameType
lib handle<vmo>?

GetSupportedFeatures

Returns the set of features the loader service supports.

Request

<EMPTY>

Response

NameType
features Features

GetVmexResource

Returns a VmexResource that can be used by Lavapipe to JIT-compile code in the client process, or an error.

Added: HEAD

Request

<EMPTY>

Response

NameType
payload Loader_GetVmexResource_Result

STRUCTS

Loader_GetVmexResource_Response resource

Defined in fuchsia.vulkan.loader/loader.fidl

FieldTypeDescriptionDefault
resource handle<resource> No default

ENUMS

GetVmexResourceError flexible

Type: uint32

Defined in fuchsia.vulkan.loader/loader.fidl

Error type returned by Loader.GetVmexResource.

Added: HEAD

NameValueDescription
1

The structured config value allow_lavapipe_icd is false.

2

The loader was unable to obtain a VmexResource handle.

UNIONS

Loader_GetVmexResource_Result strict resource

Defined in fuchsia.vulkan.loader/loader.fidl

OrdinalVariantTypeDescription
response Loader_GetVmexResource_Response
err GetVmexResourceError

BITS

ConnectToManifestOptions flexible

Type: uint32

Defined in fuchsia.vulkan.loader/loader.fidl

NameValueDescription
1

Wait for the loader to finish processing current ICD loading/unloading operations before completing the connection.

Features flexible

Type: uint32

Defined in fuchsia.vulkan.loader/loader.fidl

NameValueDescription
1

Implements Get().

2

Implements ConnectToDeviceFs().

4

Implements ConnectToManifestFs().