summarylogtreecommitdiffstats
path: root/wrapper.sh
blob: 401804486db908ad6ed78522d1c2395afb557e2d (plain)
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
39
40
41
42
43
44
45
#!/bin/sh

basedir='/opt/vkcv/'

createmenu ()
{
        select option; do
                if [ 0 -eq "$REPLY" ]; then
                        echo "uhm.. "
                else
                        opt=$(echo ${option})
                        dir=${basedir}${option}"/"
                        bin=${basedir}${option}"/"${option}
                        break;
                fi
        done
}

list="bindless_textures
fire_works
first_mesh
first_scene
first_triangle
head_demo
indirect_dispatch
indirect_draw
mesh_shader
mpm
particle_simulation
path_tracer
ray_tracer
rt_ambient_occlusion
sph
voxelization"

if [ "$list" == "" ]; then
        exit 2
fi

array=($(echo "$list"))

createmenu "${array[@]}"

echo "you selected ${option}"
cd ${dir} && ${bin}