gpu/internal/d3d11: make the Direct3D backend internal to package gpu

The package app/internal/d3d11 now contains only the GPU backend on
Direct3D. Move it below package gpu to reflect that.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2021-03-05 15:59:34 +01:00
parent 5a9edc9af8
commit 18a6dcf571
5 changed files with 2 additions and 5 deletions
-2
View File
@@ -7,8 +7,6 @@ import (
"gioui.org/gpu"
"gioui.org/internal/d3d11"
_ "gioui.org/app/internal/d3d11"
)
type d3d11Context struct {
-2
View File
@@ -10,8 +10,6 @@ import (
"gioui.org/app/internal/window"
"gioui.org/gpu"
"gioui.org/op"
_ "gioui.org/app/internal/d3d11"
)
type renderLoop struct {
+2 -1
View File
@@ -29,8 +29,9 @@ import (
"gioui.org/op"
"gioui.org/op/clip"
// Register backend.
// Register backends.
_ "gioui.org/gpu/gl"
_ "gioui.org/gpu/internal/d3d11"
)
type GPU interface {