detached 36e3918

#1 refactor(module): use bnema.dev vanity import path

state
merged · 36e3918 · fast-forward
branch
chore/vanity-path → main
opened
bnema ·
updated

Switch module path and imports from github.com/bnema/* to bnema.dev/*.

25 files · +45 -45
4/4
M README.md +2 -2
@@ -2,7 +2,7 @@
22
33 Linux-first Vulkan bindings for Go without cgo.
44
5-`purego-vulkan` loads the system Vulkan loader (`libvulkan.so.1`) through `github.com/bnema/purego` and generates its raw Vulkan API surface from the pinned Khronos registry at `registry/vk.xml`.
5+`purego-vulkan` loads the system Vulkan loader (`libvulkan.so.1`) through `bnema.dev/purego` and generates its raw Vulkan API surface from the pinned Khronos registry at `registry/vk.xml`.
66
77 The package is intentionally low-level. It exposes Vulkan ABI types, constants, command signatures, result helpers, and explicit global/instance/device dispatch tables for compositor and renderer code that owns its rendering architecture.
88
@@ -82,7 +82,7 @@ git diff --exit-code
8282 ## Consumer integration
8383
8484 ```sh
85-go get github.com/bnema/purego-vulkan@latest
85+go get bnema.dev/purego-vulkan@latest
8686 ```
8787
8888 To work on the bindings and a consumer together, use a Go workspace (`go work init . ../purego-vulkan`) instead of a `replace` directive. Rendering policy, image import and presentation belong in the consumer; do not copy generated files into it.
@@ -2,7 +2,7 @@
2 2
3 Linux-first Vulkan bindings for Go without cgo.3 Linux-first Vulkan bindings for Go without cgo.
4 4
5-`purego-vulkan` loads the system Vulkan loader (`libvulkan.so.1`) through `github.com/bnema/purego` and generates its raw Vulkan API surface from the pinned Khronos registry at `registry/vk.xml`.5+`purego-vulkan` loads the system Vulkan loader (`libvulkan.so.1`) through `bnema.dev/purego` and generates its raw Vulkan API surface from the pinned Khronos registry at `registry/vk.xml`.
6 6
7 The package is intentionally low-level. It exposes Vulkan ABI types, constants, command signatures, result helpers, and explicit global/instance/device dispatch tables for compositor and renderer code that owns its rendering architecture.7 The package is intentionally low-level. It exposes Vulkan ABI types, constants, command signatures, result helpers, and explicit global/instance/device dispatch tables for compositor and renderer code that owns its rendering architecture.
8 8
@@ -82,7 +82,7 @@ git diff --exit-code
82 ## Consumer integration82 ## Consumer integration
83 83
84 ```sh84 ```sh
85-go get github.com/bnema/purego-vulkan@latest85+go get bnema.dev/purego-vulkan@latest
86 ```86 ```
87 87
88 To work on the bindings and a consumer together, use a Go workspace (`go work init . ../purego-vulkan`) instead of a `replace` directive. Rendering policy, image import and presentation belong in the consumer; do not copy generated files into it.88 To work on the bindings and a consumer together, use a Go workspace (`go work init . ../purego-vulkan`) instead of a `replace` directive. Rendering policy, image import and presentation belong in the consumer; do not copy generated files into it.
M cmd/vulkangen/internal/emitter/emitter.go +2 -2
@@ -7,7 +7,7 @@ import (
77 "strconv"
88 "strings"
99
10- "github.com/bnema/purego-vulkan/cmd/vulkangen/internal/model"
10+ "bnema.dev/purego-vulkan/cmd/vulkangen/internal/model"
1111 )
1212
1313 func EmitTypes(sel *model.SelectedRegistry) (string, error) {
@@ -143,7 +143,7 @@ func EmitCommands(sel *model.SelectedRegistry) (string, error) {
143143 func EmitDispatch(sel *model.SelectedRegistry) (string, error) {
144144 var b bytes.Buffer
145145 writeHeader(&b, "vulkan")
146- b.WriteString("import (\n\t\"unsafe\"\n\t\"github.com/bnema/purego\"\n)\n\n")
146+ b.WriteString("import (\n\t\"unsafe\"\n\t\"bnema.dev/purego\"\n)\n\n")
147147 writeDispatchStruct(&b, "GlobalDispatch", "", commandsByDispatch(sel, model.DispatchGlobal))
148148 writeDispatchStruct(&b, "InstanceDispatch", "Instance Instance", commandsByDispatch(sel, model.DispatchInstance))
149149 writeDispatchStruct(&b, "DeviceDispatch", "Device Device", commandsByDispatch(sel, model.DispatchDevice))
@@ -7,7 +7,7 @@ import (
7 "strconv"7 "strconv"
8 "strings"8 "strings"
9 9
10- "github.com/bnema/purego-vulkan/cmd/vulkangen/internal/model"10+ "bnema.dev/purego-vulkan/cmd/vulkangen/internal/model"
11 )11 )
12 12
13 func EmitTypes(sel *model.SelectedRegistry) (string, error) {13 func EmitTypes(sel *model.SelectedRegistry) (string, error) {
@@ -143,7 +143,7 @@ func EmitCommands(sel *model.SelectedRegistry) (string, error) {
143 func EmitDispatch(sel *model.SelectedRegistry) (string, error) {143 func EmitDispatch(sel *model.SelectedRegistry) (string, error) {
144 var b bytes.Buffer144 var b bytes.Buffer
145 writeHeader(&b, "vulkan")145 writeHeader(&b, "vulkan")
146- b.WriteString("import (\n\t\"unsafe\"\n\t\"github.com/bnema/purego\"\n)\n\n")146+ b.WriteString("import (\n\t\"unsafe\"\n\t\"bnema.dev/purego\"\n)\n\n")
147 writeDispatchStruct(&b, "GlobalDispatch", "", commandsByDispatch(sel, model.DispatchGlobal))147 writeDispatchStruct(&b, "GlobalDispatch", "", commandsByDispatch(sel, model.DispatchGlobal))
148 writeDispatchStruct(&b, "InstanceDispatch", "Instance Instance", commandsByDispatch(sel, model.DispatchInstance))148 writeDispatchStruct(&b, "InstanceDispatch", "Instance Instance", commandsByDispatch(sel, model.DispatchInstance))
149 writeDispatchStruct(&b, "DeviceDispatch", "Device Device", commandsByDispatch(sel, model.DispatchDevice))149 writeDispatchStruct(&b, "DeviceDispatch", "Device Device", commandsByDispatch(sel, model.DispatchDevice))
M cmd/vulkangen/internal/emitter/emitter_test.go +1 -1
@@ -4,7 +4,7 @@ import (
44 "strings"
55 "testing"
66
7- "github.com/bnema/purego-vulkan/cmd/vulkangen/internal/model"
7+ "bnema.dev/purego-vulkan/cmd/vulkangen/internal/model"
88 )
99
1010 func TestEmitTypes(t *testing.T) {
@@ -4,7 +4,7 @@ import (
4 "strings"4 "strings"
5 "testing"5 "testing"
6 6
7- "github.com/bnema/purego-vulkan/cmd/vulkangen/internal/model"7+ "bnema.dev/purego-vulkan/cmd/vulkangen/internal/model"
8 )8 )
9 9
10 func TestEmitTypes(t *testing.T) {10 func TestEmitTypes(t *testing.T) {
M cmd/vulkangen/internal/model/model_test.go +3 -3
@@ -4,9 +4,9 @@ import (
44 "path/filepath"
55 "testing"
66
7- "github.com/bnema/purego-vulkan/cmd/vulkangen/internal/model"
8- "github.com/bnema/purego-vulkan/cmd/vulkangen/internal/overrides"
9- "github.com/bnema/purego-vulkan/cmd/vulkangen/internal/parser"
7+ "bnema.dev/purego-vulkan/cmd/vulkangen/internal/model"
8+ "bnema.dev/purego-vulkan/cmd/vulkangen/internal/overrides"
9+ "bnema.dev/purego-vulkan/cmd/vulkangen/internal/parser"
1010 )
1111
1212 func TestNormalizeClassifiesDispatchableAndNonDispatchableHandles(t *testing.T) {
@@ -4,9 +4,9 @@ import (
4 "path/filepath"4 "path/filepath"
5 "testing"5 "testing"
6 6
7- "github.com/bnema/purego-vulkan/cmd/vulkangen/internal/model"7+ "bnema.dev/purego-vulkan/cmd/vulkangen/internal/model"
8- "github.com/bnema/purego-vulkan/cmd/vulkangen/internal/overrides"8+ "bnema.dev/purego-vulkan/cmd/vulkangen/internal/overrides"
9- "github.com/bnema/purego-vulkan/cmd/vulkangen/internal/parser"9+ "bnema.dev/purego-vulkan/cmd/vulkangen/internal/parser"
10 )10 )
11 11
12 func TestNormalizeClassifiesDispatchableAndNonDispatchableHandles(t *testing.T) {12 func TestNormalizeClassifiesDispatchableAndNonDispatchableHandles(t *testing.T) {
M cmd/vulkangen/internal/overrides/overrides.go +1 -1
@@ -5,7 +5,7 @@ import (
55 "maps"
66 "strings"
77
8- "github.com/bnema/purego-vulkan/cmd/vulkangen/internal/model"
8+ "bnema.dev/purego-vulkan/cmd/vulkangen/internal/model"
99 )
1010
1111 var InitialCommands = []string{
@@ -5,7 +5,7 @@ import (
5 "maps"5 "maps"
6 "strings"6 "strings"
7 7
8- "github.com/bnema/purego-vulkan/cmd/vulkangen/internal/model"8+ "bnema.dev/purego-vulkan/cmd/vulkangen/internal/model"
9 )9 )
10 10
11 var InitialCommands = []string{11 var InitialCommands = []string{
M cmd/vulkangen/internal/overrides/overrides_test.go +3 -3
@@ -4,9 +4,9 @@ import (
44 "path/filepath"
55 "testing"
66
7- "github.com/bnema/purego-vulkan/cmd/vulkangen/internal/model"
8- "github.com/bnema/purego-vulkan/cmd/vulkangen/internal/overrides"
9- "github.com/bnema/purego-vulkan/cmd/vulkangen/internal/parser"
7+ "bnema.dev/purego-vulkan/cmd/vulkangen/internal/model"
8+ "bnema.dev/purego-vulkan/cmd/vulkangen/internal/overrides"
9+ "bnema.dev/purego-vulkan/cmd/vulkangen/internal/parser"
1010 )
1111
1212 func TestWSIProfileSelectsLinuxPresentationAndReadbackSurface(t *testing.T) {
@@ -4,9 +4,9 @@ import (
4 "path/filepath"4 "path/filepath"
5 "testing"5 "testing"
6 6
7- "github.com/bnema/purego-vulkan/cmd/vulkangen/internal/model"7+ "bnema.dev/purego-vulkan/cmd/vulkangen/internal/model"
8- "github.com/bnema/purego-vulkan/cmd/vulkangen/internal/overrides"8+ "bnema.dev/purego-vulkan/cmd/vulkangen/internal/overrides"
9- "github.com/bnema/purego-vulkan/cmd/vulkangen/internal/parser"9+ "bnema.dev/purego-vulkan/cmd/vulkangen/internal/parser"
10 )10 )
11 11
12 func TestWSIProfileSelectsLinuxPresentationAndReadbackSurface(t *testing.T) {12 func TestWSIProfileSelectsLinuxPresentationAndReadbackSurface(t *testing.T) {
M cmd/vulkangen/internal/parser/parser.go +1 -1
@@ -7,7 +7,7 @@ import (
77 "regexp"
88 "strings"
99
10- "github.com/bnema/purego-vulkan/cmd/vulkangen/internal/model"
10+ "bnema.dev/purego-vulkan/cmd/vulkangen/internal/model"
1111 )
1212
1313 // ParseFile decodes a Vulkan registry XML file into the generator's raw model.
@@ -7,7 +7,7 @@ import (
7 "regexp"7 "regexp"
8 "strings"8 "strings"
9 9
10- "github.com/bnema/purego-vulkan/cmd/vulkangen/internal/model"10+ "bnema.dev/purego-vulkan/cmd/vulkangen/internal/model"
11 )11 )
12 12
13 // ParseFile decodes a Vulkan registry XML file into the generator's raw model.13 // ParseFile decodes a Vulkan registry XML file into the generator's raw model.
M cmd/vulkangen/main.go +4 -4
@@ -6,10 +6,10 @@ import (
66 "os"
77 "path/filepath"
88
9- "github.com/bnema/purego-vulkan/cmd/vulkangen/internal/emitter"
10- "github.com/bnema/purego-vulkan/cmd/vulkangen/internal/model"
11- "github.com/bnema/purego-vulkan/cmd/vulkangen/internal/overrides"
12- "github.com/bnema/purego-vulkan/cmd/vulkangen/internal/parser"
9+ "bnema.dev/purego-vulkan/cmd/vulkangen/internal/emitter"
10+ "bnema.dev/purego-vulkan/cmd/vulkangen/internal/model"
11+ "bnema.dev/purego-vulkan/cmd/vulkangen/internal/overrides"
12+ "bnema.dev/purego-vulkan/cmd/vulkangen/internal/parser"
1313 )
1414
1515 type config struct {
@@ -6,10 +6,10 @@ import (
6 "os"6 "os"
7 "path/filepath"7 "path/filepath"
8 8
9- "github.com/bnema/purego-vulkan/cmd/vulkangen/internal/emitter"9+ "bnema.dev/purego-vulkan/cmd/vulkangen/internal/emitter"
10- "github.com/bnema/purego-vulkan/cmd/vulkangen/internal/model"10+ "bnema.dev/purego-vulkan/cmd/vulkangen/internal/model"
11- "github.com/bnema/purego-vulkan/cmd/vulkangen/internal/overrides"11+ "bnema.dev/purego-vulkan/cmd/vulkangen/internal/overrides"
12- "github.com/bnema/purego-vulkan/cmd/vulkangen/internal/parser"12+ "bnema.dev/purego-vulkan/cmd/vulkangen/internal/parser"
13 )13 )
14 14
15 type config struct {15 type config struct {
M cmd/vulkangen/main_test.go +4 -4
@@ -10,7 +10,7 @@ import (
1010 "testing"
1111 "time"
1212
13- "github.com/bnema/purego-vulkan/cmd/vulkangen/internal/overrides"
13+ "bnema.dev/purego-vulkan/cmd/vulkangen/internal/overrides"
1414 )
1515
1616 func TestGenerationProfilesEmitCompilablePackages(t *testing.T) {
@@ -68,14 +68,14 @@ func writeGeneratedCompileHarness(t *testing.T, outDir string) {
6868 }
6969 var version string
7070 for _, req := range mod.Require {
71- if req.Path == "github.com/bnema/purego" {
71+ if req.Path == "bnema.dev/purego" {
7272 version = req.Version
7373 }
7474 }
7575 if version == "" {
76- t.Fatal("repository go.mod has no github.com/bnema/purego requirement")
76+ t.Fatal("repository go.mod has no bnema.dev/purego requirement")
7777 }
78- contents := fmt.Sprintf("module generatedprofile\n\ngo %s\n\nrequire github.com/bnema/purego %s\n", mod.Go, version)
78+ contents := fmt.Sprintf("module generatedprofile\n\ngo %s\n\nrequire bnema.dev/purego %s\n", mod.Go, version)
7979 if err := os.WriteFile(filepath.Join(outDir, "go.mod"), []byte(contents), 0o644); err != nil {
8080 t.Fatalf("write generated go.mod: %v", err)
8181 }
@@ -10,7 +10,7 @@ import (
10 "testing"10 "testing"
11 "time"11 "time"
12 12
13- "github.com/bnema/purego-vulkan/cmd/vulkangen/internal/overrides"13+ "bnema.dev/purego-vulkan/cmd/vulkangen/internal/overrides"
14 )14 )
15 15
16 func TestGenerationProfilesEmitCompilablePackages(t *testing.T) {16 func TestGenerationProfilesEmitCompilablePackages(t *testing.T) {
@@ -68,14 +68,14 @@ func writeGeneratedCompileHarness(t *testing.T, outDir string) {
68 }68 }
69 var version string69 var version string
70 for _, req := range mod.Require {70 for _, req := range mod.Require {
71- if req.Path == "github.com/bnema/purego" {71+ if req.Path == "bnema.dev/purego" {
72 version = req.Version72 version = req.Version
73 }73 }
74 }74 }
75 if version == "" {75 if version == "" {
76- t.Fatal("repository go.mod has no github.com/bnema/purego requirement")76+ t.Fatal("repository go.mod has no bnema.dev/purego requirement")
77 }77 }
78- contents := fmt.Sprintf("module generatedprofile\n\ngo %s\n\nrequire github.com/bnema/purego %s\n", mod.Go, version)78+ contents := fmt.Sprintf("module generatedprofile\n\ngo %s\n\nrequire bnema.dev/purego %s\n", mod.Go, version)
79 if err := os.WriteFile(filepath.Join(outDir, "go.mod"), []byte(contents), 0o644); err != nil {79 if err := os.WriteFile(filepath.Join(outDir, "go.mod"), []byte(contents), 0o644); err != nil {
80 t.Fatalf("write generated go.mod: %v", err)80 t.Fatalf("write generated go.mod: %v", err)
81 }81 }
M docs/design-notes.md +1 -1
@@ -4,7 +4,7 @@
44
55 ## Loader and dispatch design
66
7-`vulkan.Init` opens `libvulkan.so.1` through `github.com/bnema/purego`, resolves `vkGetInstanceProcAddr` with `dlsym`, registers it, and loads global commands. Failed initialization is retryable, so callers can supply `vulkan.WithLibraryPath` after a default lookup failure.
7+`vulkan.Init` opens `libvulkan.so.1` through `bnema.dev/purego`, resolves `vkGetInstanceProcAddr` with `dlsym`, registers it, and loads global commands. Failed initialization is retryable, so callers can supply `vulkan.WithLibraryPath` after a default lookup failure.
88
99 Vulkan commands are loaded through Vulkan dispatch rather than as a flat `dlsym` table:
1010
@@ -4,7 +4,7 @@
4 4
5 ## Loader and dispatch design5 ## Loader and dispatch design
6 6
7-`vulkan.Init` opens `libvulkan.so.1` through `github.com/bnema/purego`, resolves `vkGetInstanceProcAddr` with `dlsym`, registers it, and loads global commands. Failed initialization is retryable, so callers can supply `vulkan.WithLibraryPath` after a default lookup failure.7+`vulkan.Init` opens `libvulkan.so.1` through `bnema.dev/purego`, resolves `vkGetInstanceProcAddr` with `dlsym`, registers it, and loads global commands. Failed initialization is retryable, so callers can supply `vulkan.WithLibraryPath` after a default lookup failure.
8 8
9 Vulkan commands are loaded through Vulkan dispatch rather than as a flat `dlsym` table:9 Vulkan commands are loaded through Vulkan dispatch rather than as a flat `dlsym` table:
10 10
M examples/enumerate/main.go +1 -1
@@ -6,7 +6,7 @@ import (
66 "os"
77 "runtime"
88
9- "github.com/bnema/purego-vulkan/vulkan"
9+ "bnema.dev/purego-vulkan/vulkan"
1010 )
1111
1212 var criticalExtensions = []string{
@@ -6,7 +6,7 @@ import (
6 "os"6 "os"
7 "runtime"7 "runtime"
8 8
9- "github.com/bnema/purego-vulkan/vulkan"9+ "bnema.dev/purego-vulkan/vulkan"
10 )10 )
11 11
12 var criticalExtensions = []string{12 var criticalExtensions = []string{
M go.mod +2 -2
@@ -1,5 +1,5 @@
1-module github.com/bnema/purego-vulkan
1+module bnema.dev/purego-vulkan
22
33 go 1.25.0
44
5-require github.com/bnema/purego v0.13.0-bnema.1
5+require bnema.dev/purego v0.13.0-bnema.3
@@ -1,5 +1,5 @@
1-module github.com/bnema/purego-vulkan1+module bnema.dev/purego-vulkan
2 2
3 go 1.25.03 go 1.25.0
4 4
5-require github.com/bnema/purego v0.13.0-bnema.15+require bnema.dev/purego v0.13.0-bnema.3
M go.sum +2 -2 generated file: collapsed
M integration/dispatch_alloc_test.go +1 -1
@@ -1,7 +1,7 @@
11 package integration_test
22
33 import (
4- "github.com/bnema/purego-vulkan/vulkan"
4+ "bnema.dev/purego-vulkan/vulkan"
55 "testing"
66 )
77
@@ -1,7 +1,7 @@
1 package integration_test1 package integration_test
2 2
3 import (3 import (
4- "github.com/bnema/purego-vulkan/vulkan"4+ "bnema.dev/purego-vulkan/vulkan"
5 "testing"5 "testing"
6 )6 )
7 7
M integration/dmabuf_contract_compile_test.go +1 -1
@@ -1,6 +1,6 @@
11 package integration_test
22
3-import "github.com/bnema/purego-vulkan/vulkan"
3+import "bnema.dev/purego-vulkan/vulkan"
44
55 // Compile-time consumer coverage: keep the names and method sets used by a DMA-BUF presentation path
66 // visible to an external package without initializing a Vulkan loader.
@@ -1,6 +1,6 @@
1 package integration_test1 package integration_test
2 2
3-import "github.com/bnema/purego-vulkan/vulkan"3+import "bnema.dev/purego-vulkan/vulkan"
4 4
5 // Compile-time consumer coverage: keep the names and method sets used by a DMA-BUF presentation path5 // Compile-time consumer coverage: keep the names and method sets used by a DMA-BUF presentation path
6 // visible to an external package without initializing a Vulkan loader.6 // visible to an external package without initializing a Vulkan loader.
M integration/dmabuf_export_probe_test.go +2 -2
@@ -6,11 +6,11 @@ import (
66 "runtime"
77 "strings"
88
9- "github.com/bnema/purego"
9+ "bnema.dev/purego"
1010 "testing"
1111 "unsafe"
1212
13- "github.com/bnema/purego-vulkan/vulkan"
13+ "bnema.dev/purego-vulkan/vulkan"
1414 )
1515
1616 // TestHardwareDMABUFExport checks DMA-BUF image export and timeline semaphore FD export on real devices.
@@ -6,11 +6,11 @@ import (
6 "runtime"6 "runtime"
7 "strings"7 "strings"
8 8
9- "github.com/bnema/purego"9+ "bnema.dev/purego"
10 "testing"10 "testing"
11 "unsafe"11 "unsafe"
12 12
13- "github.com/bnema/purego-vulkan/vulkan"13+ "bnema.dev/purego-vulkan/vulkan"
14 )14 )
15 15
16 // TestHardwareDMABUFExport checks DMA-BUF image export and timeline semaphore FD export on real devices.16 // TestHardwareDMABUFExport checks DMA-BUF image export and timeline semaphore FD export on real devices.
M integration/instance_test.go +1 -1
@@ -5,7 +5,7 @@ import (
55 "runtime"
66 "testing"
77
8- "github.com/bnema/purego-vulkan/vulkan"
8+ "bnema.dev/purego-vulkan/vulkan"
99 )
1010
1111 var compositorCriticalExtensions = []string{
@@ -5,7 +5,7 @@ import (
5 "runtime"5 "runtime"
6 "testing"6 "testing"
7 7
8- "github.com/bnema/purego-vulkan/vulkan"8+ "bnema.dev/purego-vulkan/vulkan"
9 )9 )
10 10
11 var compositorCriticalExtensions = []string{11 var compositorCriticalExtensions = []string{
M integration/loader_test.go +2 -2
@@ -3,8 +3,8 @@ package integration_test
33 import (
44 "testing"
55
6- "github.com/bnema/purego"
7- "github.com/bnema/purego-vulkan/vulkan"
6+ "bnema.dev/purego"
7+ "bnema.dev/purego-vulkan/vulkan"
88 )
99
1010 func TestInitWithSystemLoader(t *testing.T) {
@@ -3,8 +3,8 @@ package integration_test
3 import (3 import (
4 "testing"4 "testing"
5 5
6- "github.com/bnema/purego"6+ "bnema.dev/purego"
7- "github.com/bnema/purego-vulkan/vulkan"7+ "bnema.dev/purego-vulkan/vulkan"
8 )8 )
9 9
10 func TestInitWithSystemLoader(t *testing.T) {10 func TestInitWithSystemLoader(t *testing.T) {
M internal/capi/register.go +1 -1
@@ -1,6 +1,6 @@
11 package capi
22
3-import "github.com/bnema/purego"
3+import "bnema.dev/purego"
44
55 // RegisterFunc binds fptr to the C function address addr.
66 func RegisterFunc(fptr any, addr uintptr) {
@@ -1,6 +1,6 @@
1 package capi1 package capi
2 2
3-import "github.com/bnema/purego"3+import "bnema.dev/purego"
4 4
5 // RegisterFunc binds fptr to the C function address addr.5 // RegisterFunc binds fptr to the C function address addr.
6 func RegisterFunc(fptr any, addr uintptr) {6 func RegisterFunc(fptr any, addr uintptr) {
M internal/loader/loader.go +4 -4
@@ -4,7 +4,7 @@ import (
44 "errors"
55 "fmt"
66
7- "github.com/bnema/purego"
7+ "bnema.dev/purego"
88 )
99
1010 // SharedLibrary is a dlopen handle paired with the path that succeeded.
@@ -22,17 +22,17 @@ type LookupFunc func(handle uintptr, symbol string) (uintptr, error)
2222 // CloseFunc closes a shared library handle.
2323 type CloseFunc func(handle uintptr) error
2424
25-// PuregoOpen opens a shared library through github.com/bnema/purego.
25+// PuregoOpen opens a shared library through bnema.dev/purego.
2626 func PuregoOpen(path string, mode int) (uintptr, error) {
2727 return purego.Dlopen(path, mode)
2828 }
2929
30-// PuregoLookup resolves a shared library symbol through github.com/bnema/purego.
30+// PuregoLookup resolves a shared library symbol through bnema.dev/purego.
3131 func PuregoLookup(handle uintptr, symbol string) (uintptr, error) {
3232 return purego.Dlsym(handle, symbol)
3333 }
3434
35-// PuregoClose closes a shared library through github.com/bnema/purego.
35+// PuregoClose closes a shared library through bnema.dev/purego.
3636 func PuregoClose(handle uintptr) error {
3737 return purego.Dlclose(handle)
3838 }
@@ -4,7 +4,7 @@ import (
4 "errors"4 "errors"
5 "fmt"5 "fmt"
6 6
7- "github.com/bnema/purego"7+ "bnema.dev/purego"
8 )8 )
9 9
10 // SharedLibrary is a dlopen handle paired with the path that succeeded.10 // SharedLibrary is a dlopen handle paired with the path that succeeded.
@@ -22,17 +22,17 @@ type LookupFunc func(handle uintptr, symbol string) (uintptr, error)
22 // CloseFunc closes a shared library handle.22 // CloseFunc closes a shared library handle.
23 type CloseFunc func(handle uintptr) error23 type CloseFunc func(handle uintptr) error
24 24
25-// PuregoOpen opens a shared library through github.com/bnema/purego.25+// PuregoOpen opens a shared library through bnema.dev/purego.
26 func PuregoOpen(path string, mode int) (uintptr, error) {26 func PuregoOpen(path string, mode int) (uintptr, error) {
27 return purego.Dlopen(path, mode)27 return purego.Dlopen(path, mode)
28 }28 }
29 29
30-// PuregoLookup resolves a shared library symbol through github.com/bnema/purego.30+// PuregoLookup resolves a shared library symbol through bnema.dev/purego.
31 func PuregoLookup(handle uintptr, symbol string) (uintptr, error) {31 func PuregoLookup(handle uintptr, symbol string) (uintptr, error) {
32 return purego.Dlsym(handle, symbol)32 return purego.Dlsym(handle, symbol)
33 }33 }
34 34
35-// PuregoClose closes a shared library through github.com/bnema/purego.35+// PuregoClose closes a shared library through bnema.dev/purego.
36 func PuregoClose(handle uintptr) error {36 func PuregoClose(handle uintptr) error {
37 return purego.Dlclose(handle)37 return purego.Dlclose(handle)
38 }38 }
M vulkan/dispatch.go +1 -1
@@ -6,7 +6,7 @@ import (
66 "runtime"
77 "sync"
88
9- "github.com/bnema/purego-vulkan/internal/capi"
9+ "bnema.dev/purego-vulkan/internal/capi"
1010 )
1111
1212 type Error struct {
@@ -6,7 +6,7 @@ import (
6 "runtime"6 "runtime"
7 "sync"7 "sync"
8 8
9- "github.com/bnema/purego-vulkan/internal/capi"9+ "bnema.dev/purego-vulkan/internal/capi"
10 )10 )
11 11
12 type Error struct {12 type Error struct {
M vulkan/dispatch_gen.go +1 -1 generated file: collapsed
M vulkan/dispatch_test.go +1 -1
@@ -1,7 +1,7 @@
11 package vulkan
22
33 import (
4- "github.com/bnema/purego"
4+ "bnema.dev/purego"
55 "reflect"
66 "strings"
77 "testing"
@@ -1,7 +1,7 @@
1 package vulkan1 package vulkan
2 2
3 import (3 import (
4- "github.com/bnema/purego"4+ "bnema.dev/purego"
5 "reflect"5 "reflect"
6 "strings"6 "strings"
7 "testing"7 "testing"
M vulkan/init.go +2 -2
@@ -7,8 +7,8 @@ import (
77 "path/filepath"
88 "sync"
99
10- "github.com/bnema/purego-vulkan/internal/capi"
11- internalloader "github.com/bnema/purego-vulkan/internal/loader"
10+ "bnema.dev/purego-vulkan/internal/capi"
11+ internalloader "bnema.dev/purego-vulkan/internal/loader"
1212 )
1313
1414 type config struct {
@@ -7,8 +7,8 @@ import (
7 "path/filepath"7 "path/filepath"
8 "sync"8 "sync"
9 9
10- "github.com/bnema/purego-vulkan/internal/capi"10+ "bnema.dev/purego-vulkan/internal/capi"
11- internalloader "github.com/bnema/purego-vulkan/internal/loader"11+ internalloader "bnema.dev/purego-vulkan/internal/loader"
12 )12 )
13 13
14 type config struct {14 type config struct {
M vulkan/init_test.go +1 -1
@@ -5,7 +5,7 @@ import (
55 "strings"
66 "testing"
77
8- internalloader "github.com/bnema/purego-vulkan/internal/loader"
8+ internalloader "bnema.dev/purego-vulkan/internal/loader"
99 )
1010
1111 func TestInitRunsOnlyOnce(t *testing.T) {
@@ -5,7 +5,7 @@ import (
5 "strings"5 "strings"
6 "testing"6 "testing"
7 7
8- internalloader "github.com/bnema/purego-vulkan/internal/loader"8+ internalloader "bnema.dev/purego-vulkan/internal/loader"
9 )9 )
10 10
11 func TestInitRunsOnlyOnce(t *testing.T) {11 func TestInitRunsOnlyOnce(t *testing.T) {

Comments00 unresolved

    no comments yet.

    Keyboard shortcuts

    Single-key shortcuts are on. ctrl k and esc work whatever this says.

    ctrl k :
    go to a section, branch, tag, file or repository
    ?
    this list
    j k
    move the row cursor down / up
    enter
    open the row under the cursor; on Files, a directory opens or closes in place
    ↑ ↓ ← → home end
    in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
    l h
    on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. On pages with a side panel: into the panel (on a merge request, its files) / back to the content; there j k move between its controls
    g g G
    first / last row
    /
    filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
    b
    switch branch or tag
    g s g f g c g b g m g i g r g a
    tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
    g h
    home
    w
    wide mode: use the whole width of the screen, or not (remembered)
    y
    copy a permalink pinned to the commit; in a file, click a line number to select it, shift-click for a range
    d u x
    diff: split / unified / collapse or expand all
    e E
    diff: the whole file in view / every file, with the lines the hunks hide
    n
    merge request: next note in the diff
    l
    merge request: the list of files (j k move, enter opens, esc back)
    M
    merge request: the merge menu; there 1–3 pick the mode, D deletes the branch, enter merges
    R
    merge request: mark the head read
    esc
    close a dialog, leave a field

    Branches 3

    Tags 10

    ↑↓ moveenter openesc close