Documentation ¶
Overview ¶
Package loader contains utilities for setting up the Vulkan loader.
Index ¶
- Constants
- func SetupLayers(ctx context.Context, layers []string, skipMissingLayers bool, d bind.Desktop, ...) (app.Cleanup, error)
- func SetupReplay(ctx context.Context, d bind.Desktop, abi *device.ABI, env *shell.Env) (app.Cleanup, error)
- func SetupTrace(ctx context.Context, d bind.Desktop, abi *device.ABI, env *shell.Env) (app.Cleanup, string, error)
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.
Click to show internal directories.
Click to hide internal directories.