You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-4Lines changed: 18 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@
4
4
- vulcandraw
5
5
- vulcancube
6
6
7
+
Using CGO then requare C/C++ compiler on path.
8
+
7
9
## Supported platforms
8
10
9
11
- Windows (GLFW)
@@ -18,18 +20,18 @@
18
20
### GLFW v3.3
19
21
20
22
A standard `go run main.go` / `go build` in each of the glfw demo folders should work out of the box for most platforms.
23
+
Optionally make file can help.
21
24
22
-
For macOS / iOS the MoltenVK.framework needs to be installed in the /Library/Frameworks folder for the build to find it. It can be downloaded as part of he Vulkan SDK: https://vulkan.lunarg.com/sdk/home
25
+
For macOS / iOS the [MoltenVK](https://github.com/KhronosGroup/MoltenVK) dylib needs to be installed.
26
+
On macOS you can use [Homebrew](https://docs.brew.sh/Installation) and install `molten-vk` package like `brew install molten-vk`.
23
27
24
28
### Manual configuration
25
29
26
-
For **OS X / macOS** you'll need to install the latest GLFW 3.3 from master https://github.com/glfw/glfw
30
+
For **OS X / macOS** you'll need to install. the latest GLFW 3.3 from master https://github.com/glfw/glfw
27
31
and prepare MoltenVK https://moltengl.com/moltenvk/ SDK beforehand so CMake could find it.
28
32
29
33
There is a Makefile https://github.com/vulkan-go/demos/blob/master/vulkancube/vulkancube_desktop/Makefile to show how to properly invoke `go install` specifying the path to GLFW.
30
34
31
-
For **Windows** you don't need to compile MoltenVK and can use GLFW 3.2.1 distro from the site http://www.glfw.org then just specify paths in Makefile or run commands by hand, specifying paths to GLFW distro folders.
32
-
33
35
Make sure your graphics card and driver are supported:
34
36
35
37
-https://developer.nvidia.com/vulkan-driver
@@ -39,6 +41,18 @@ In all cases you will run `XXX_desktop` demos.
- set system variable [ANDROID_HOME](https://developer.android.com/studio/command-line/variables)
50
+
- set system variable [NDK](https://developer.android.com/ndk/guides/other_build_systems)
51
+
- set system variable [HOST_TAG](https://developer.android.com/ndk/guides/other_build_systems)
52
+
53
+
In the "android" folder is "make" file which run as `make all` will clean, build and make application APK file in ./android/app/build/outputs/apk/debug.
54
+
Using Android Studio is very easy to deploy APK file into physical device or emulator.
55
+
42
56
Refer to [xlab/android-go/examples/minimal](https://github.com/xlab/android-go/tree/master/examples/minimal)
0 commit comments