{"modulePath":"github.com/go-webgpu/webgpu","version":"v0.5.5","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package setup\n\nPackage setup provides wgpu-native library installation for go-webgpu.\n\nUsage:\n\n\tgo run github.com/go-webgpu/webgpu/cmd/setup@latest\n\nOr programmatically:\n\n\tpath, err := setup.Install(\"lib\")\n\tfound := setup.FindLibrary()\n\n## Constants\n\n```go\nconst Version = \"v29.0.0.0\"\n```\n\n## Functions\n\n```go\nfunc FindLibrary() string\n```\nFindLibrary 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.\n\n```go\nfunc Install(destDir string) (string, error)\n```\nInstall downloads and installs the wgpu-native library to destDir. If destDir is empty, defaults to \"./lib\". Returns the absolute path to the installed library.\n\n","path":"github.com/go-webgpu/webgpu/setup","name":"setup","synopsis":"Package setup provides wgpu-native library installation for go-webgpu.","isRedistributable":true}
