setup

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package setup provides wgpu-native library installation for go-webgpu.

Usage:

go run github.com/go-webgpu/webgpu/cmd/setup@latest

Or programmatically:

path, err := setup.Install("lib")
found := setup.FindLibrary()

Index

Constants

View Source
const Version = "v29.0.0.0"

Variables

This section is empty.

Functions

func FindLibrary

func FindLibrary() string

FindLibrary searches common locations for the wgpu-native library. Returns the absolute path if found, empty string otherwise. Search order: WGPU_NATIVE_PATH env → ./lib/ → executable dir → PATH.

func Install

func Install(destDir string) (string, error)

Install downloads and installs the wgpu-native library to destDir. If destDir is empty, defaults to "./lib". Returns the absolute path to the installed library.

Types

This section is empty.

Jump to

Keyboard shortcuts

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