-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
load-image-gl.sh
executable file
·39 lines (34 loc) · 1.16 KB
/
load-image-gl.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
# Copyright (c) 2021 Jeremy Carter <[email protected]>
#
# All uses of this project in part or in whole are governed
# by the terms of the license contained in the file titled
# "LICENSE" that's distributed along with the project, which
# can be found in the top-level directory of this project.
#
# If you don't agree to follow those terms or you won't
# follow them, you are not allowed to use this project or
# anything that's made with parts of it at all. The project
# is also depending on some third-party technologies, and
# some of those are governed by their own separate licenses,
# so furthermore, whenever legally possible, all license
# terms from all of the different technologies apply, with
# this project's license terms taking first priority.
# Runs this test program to check if gfx-hal is working:
#
# ../libnov/cmd/load-image
#
# It defaults to the vulkan backend, but you can change it
# to any one of these others instead if you prefer and it's
# supported by your OS:
#
# gl, dx12, dx11, metal, empty
#
# This is how you change it to OpenGL for example:
#
# ./load-image.sh --features gl
#
pwd="$PWD"
cd nov
./load-image-gl.sh $@
cd "$pwd"