Switch module path and imports from github.com/bnema/* to bnema.dev/*.
#1 refactor(module): use bnema.dev vanity import path
M README.md +2 -2
| @@ -2,7 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | 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 | 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 | 82 | ## Consumer integration | |
| 83 | 83 | ||
| 84 | 84 | ```sh | |
| 85 | - | go get github.com/bnema/purego-vulkan@latest | |
| 85 | + | go get bnema.dev/purego-vulkan@latest | |
| 86 | 86 | ``` | |
| 87 | 87 | ||
| 88 | 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. | |
| @@ -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 integration | 82 | ## Consumer integration | ||
| 83 | 83 | ||||
| 84 | ```sh | 84 | ```sh | ||
| 85 | - | go get github.com/bnema/purego-vulkan@latest | 85 | + | 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 ( | |||
| 7 | 7 | "strconv" | |
| 8 | 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 | 13 | func EmitTypes(sel *model.SelectedRegistry) (string, error) { | |
| @@ -143,7 +143,7 @@ func EmitCommands(sel *model.SelectedRegistry) (string, error) { | |||
| 143 | 143 | func EmitDispatch(sel *model.SelectedRegistry) (string, error) { | |
| 144 | 144 | var b bytes.Buffer | |
| 145 | 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 | 147 | writeDispatchStruct(&b, "GlobalDispatch", "", commandsByDispatch(sel, model.DispatchGlobal)) | |
| 148 | 148 | writeDispatchStruct(&b, "InstanceDispatch", "Instance Instance", commandsByDispatch(sel, model.DispatchInstance)) | |
| 149 | 149 | 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.Buffer | 144 | 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 ( | |||
| 4 | 4 | "strings" | |
| 5 | 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 | 10 | 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 ( | |||
| 4 | 4 | "path/filepath" | |
| 5 | 5 | "testing" | |
| 6 | 6 | ||
| 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" | |
| 10 | 10 | ) | |
| 11 | 11 | ||
| 12 | 12 | 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 ( | |||
| 5 | 5 | "maps" | |
| 6 | 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 | 11 | 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 ( | |||
| 4 | 4 | "path/filepath" | |
| 5 | 5 | "testing" | |
| 6 | 6 | ||
| 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" | |
| 10 | 10 | ) | |
| 11 | 11 | ||
| 12 | 12 | 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 ( | |||
| 7 | 7 | "regexp" | |
| 8 | 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 | 13 | // 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 ( | |||
| 6 | 6 | "os" | |
| 7 | 7 | "path/filepath" | |
| 8 | 8 | ||
| 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" | |
| 13 | 13 | ) | |
| 14 | 14 | ||
| 15 | 15 | 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 ( | |||
| 10 | 10 | "testing" | |
| 11 | 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 | 16 | func TestGenerationProfilesEmitCompilablePackages(t *testing.T) { | |
| @@ -68,14 +68,14 @@ func writeGeneratedCompileHarness(t *testing.T, outDir string) { | |||
| 68 | 68 | } | |
| 69 | 69 | var version string | |
| 70 | 70 | for _, req := range mod.Require { | |
| 71 | - | if req.Path == "github.com/bnema/purego" { | |
| 71 | + | if req.Path == "bnema.dev/purego" { | |
| 72 | 72 | version = req.Version | |
| 73 | 73 | } | |
| 74 | 74 | } | |
| 75 | 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 | 79 | if err := os.WriteFile(filepath.Join(outDir, "go.mod"), []byte(contents), 0o644); err != nil { | |
| 80 | 80 | t.Fatalf("write generated go.mod: %v", err) | |
| 81 | 81 | } | |
| @@ -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 string | 69 | 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.Version | 72 | 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 @@ | |||
| 4 | 4 | ||
| 5 | 5 | ## 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 | 9 | Vulkan commands are loaded through Vulkan dispatch rather than as a flat `dlsym` table: | |
| 10 | 10 | ||
| @@ -4,7 +4,7 @@ | |||||
| 4 | 4 | ||||
| 5 | ## Loader and dispatch design | 5 | ## 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 ( | |||
| 6 | 6 | "os" | |
| 7 | 7 | "runtime" | |
| 8 | 8 | ||
| 9 | - | "github.com/bnema/purego-vulkan/vulkan" | |
| 9 | + | "bnema.dev/purego-vulkan/vulkan" | |
| 10 | 10 | ) | |
| 11 | 11 | ||
| 12 | 12 | 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 | |
| 2 | 2 | ||
| 3 | 3 | go 1.25.0 | |
| 4 | 4 | ||
| 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-vulkan | 1 | + | module bnema.dev/purego-vulkan |
| 2 | 2 | ||||
| 3 | go 1.25.0 | 3 | go 1.25.0 | ||
| 4 | 4 | ||||
| 5 | - | require github.com/bnema/purego v0.13.0-bnema.1 | 5 | + | 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 @@ | |||
| 1 | 1 | package integration_test | |
| 2 | 2 | ||
| 3 | 3 | import ( | |
| 4 | - | "github.com/bnema/purego-vulkan/vulkan" | |
| 4 | + | "bnema.dev/purego-vulkan/vulkan" | |
| 5 | 5 | "testing" | |
| 6 | 6 | ) | |
| 7 | 7 | ||
| @@ -1,7 +1,7 @@ | |||||
| 1 | package integration_test | 1 | 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 @@ | |||
| 1 | 1 | package integration_test | |
| 2 | 2 | ||
| 3 | - | import "github.com/bnema/purego-vulkan/vulkan" | |
| 3 | + | import "bnema.dev/purego-vulkan/vulkan" | |
| 4 | 4 | ||
| 5 | 5 | // Compile-time consumer coverage: keep the names and method sets used by a DMA-BUF presentation path | |
| 6 | 6 | // visible to an external package without initializing a Vulkan loader. | |
| @@ -1,6 +1,6 @@ | |||||
| 1 | package integration_test | 1 | 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 path | 5 | // 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 ( | |||
| 6 | 6 | "runtime" | |
| 7 | 7 | "strings" | |
| 8 | 8 | ||
| 9 | - | "github.com/bnema/purego" | |
| 9 | + | "bnema.dev/purego" | |
| 10 | 10 | "testing" | |
| 11 | 11 | "unsafe" | |
| 12 | 12 | ||
| 13 | - | "github.com/bnema/purego-vulkan/vulkan" | |
| 13 | + | "bnema.dev/purego-vulkan/vulkan" | |
| 14 | 14 | ) | |
| 15 | 15 | ||
| 16 | 16 | // 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 ( | |||
| 5 | 5 | "runtime" | |
| 6 | 6 | "testing" | |
| 7 | 7 | ||
| 8 | - | "github.com/bnema/purego-vulkan/vulkan" | |
| 8 | + | "bnema.dev/purego-vulkan/vulkan" | |
| 9 | 9 | ) | |
| 10 | 10 | ||
| 11 | 11 | 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 | |||
| 3 | 3 | import ( | |
| 4 | 4 | "testing" | |
| 5 | 5 | ||
| 6 | - | "github.com/bnema/purego" | |
| 7 | - | "github.com/bnema/purego-vulkan/vulkan" | |
| 6 | + | "bnema.dev/purego" | |
| 7 | + | "bnema.dev/purego-vulkan/vulkan" | |
| 8 | 8 | ) | |
| 9 | 9 | ||
| 10 | 10 | 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 @@ | |||
| 1 | 1 | package capi | |
| 2 | 2 | ||
| 3 | - | import "github.com/bnema/purego" | |
| 3 | + | import "bnema.dev/purego" | |
| 4 | 4 | ||
| 5 | 5 | // RegisterFunc binds fptr to the C function address addr. | |
| 6 | 6 | func RegisterFunc(fptr any, addr uintptr) { | |
| @@ -1,6 +1,6 @@ | |||||
| 1 | package capi | 1 | 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 ( | |||
| 4 | 4 | "errors" | |
| 5 | 5 | "fmt" | |
| 6 | 6 | ||
| 7 | - | "github.com/bnema/purego" | |
| 7 | + | "bnema.dev/purego" | |
| 8 | 8 | ) | |
| 9 | 9 | ||
| 10 | 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 | 22 | // CloseFunc closes a shared library handle. | |
| 23 | 23 | 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 | 26 | func PuregoOpen(path string, mode int) (uintptr, error) { | |
| 27 | 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 | 31 | func PuregoLookup(handle uintptr, symbol string) (uintptr, error) { | |
| 32 | 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 | 36 | func PuregoClose(handle uintptr) error { | |
| 37 | 37 | return purego.Dlclose(handle) | |
| 38 | 38 | } | |
| @@ -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) error | 23 | 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 ( | |||
| 6 | 6 | "runtime" | |
| 7 | 7 | "sync" | |
| 8 | 8 | ||
| 9 | - | "github.com/bnema/purego-vulkan/internal/capi" | |
| 9 | + | "bnema.dev/purego-vulkan/internal/capi" | |
| 10 | 10 | ) | |
| 11 | 11 | ||
| 12 | 12 | 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 @@ | |||
| 1 | 1 | package vulkan | |
| 2 | 2 | ||
| 3 | 3 | import ( | |
| 4 | - | "github.com/bnema/purego" | |
| 4 | + | "bnema.dev/purego" | |
| 5 | 5 | "reflect" | |
| 6 | 6 | "strings" | |
| 7 | 7 | "testing" | |
| @@ -1,7 +1,7 @@ | |||||
| 1 | package vulkan | 1 | 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 ( | |||
| 7 | 7 | "path/filepath" | |
| 8 | 8 | "sync" | |
| 9 | 9 | ||
| 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" | |
| 12 | 12 | ) | |
| 13 | 13 | ||
| 14 | 14 | 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 ( | |||
| 5 | 5 | "strings" | |
| 6 | 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 | 11 | 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.