setup

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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