loader

package
v0.0.0-...-7a622f3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package loader contains utilities for setting up the Vulkan loader.

Index

Constants

View Source
const (
	// Since Android NDK r21, the VK_LAYER_KHRONOS_validation meta layer
	// is available on both desktop and Android.
	VulkanValidationLayer = "VK_LAYER_KHRONOS_validation"
)

Variables

This section is empty.

Functions

func SetupLayers

func SetupLayers(ctx context.Context, layers []string, skipMissingLayers bool, d bind.Desktop, abi *device.ABI, env *shell.Env) (app.Cleanup, error)

SetupLayers sets up the environment so that the correct layers are enabled for the application.

func SetupReplay

func SetupReplay(ctx context.Context, d bind.Desktop, abi *device.ABI, env *shell.Env) (app.Cleanup, error)

SetupReplay sets up the environment for a desktop. Returns a clean-up function to be called after replay completes, or an error.

func SetupTrace

func SetupTrace(ctx context.Context, d bind.Desktop, abi *device.ABI, env *shell.Env) (app.Cleanup, string, error)

SetupTrace sets up the environment for tracing a local app. Returns a clean-up function to be called after the trace completes, and a temporary filename that can be used to find the port if stdout fails, or an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL