mirror of
https://github.com/Ed94/VEFontCache-Odin.git
synced 2025-08-06 15:02:44 -07:00
Manually adding thirdparty libs
This commit is contained in:
30
thirdparty/sokol/build_shaders_macos.sh
vendored
Normal file
30
thirdparty/sokol/build_shaders_macos.sh
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
set -e
|
||||
|
||||
sokol_tools_root=../sokol-tools-bin
|
||||
|
||||
build_shader() {
|
||||
name=$1
|
||||
dir=examples/$name
|
||||
if [[ $(arch) =~ "arm64" ]]
|
||||
then
|
||||
shdc=$sokol_tools_root/bin/osx_arm64/sokol-shdc
|
||||
else
|
||||
shdc=$sokol_tools_root/bin/osx/sokol-shdc
|
||||
fi
|
||||
echo $dir
|
||||
$shdc -i $dir/shader.glsl -o $dir/shader.odin -l glsl430:metal_macos:hlsl5 -f sokol_odin
|
||||
}
|
||||
|
||||
build_shader blend
|
||||
build_shader bufferoffsets
|
||||
build_shader cube
|
||||
build_shader instancing
|
||||
build_shader instancing-compute
|
||||
build_shader mrt
|
||||
build_shader noninterleaved
|
||||
build_shader offscreen
|
||||
build_shader quad
|
||||
build_shader shapes
|
||||
build_shader texcube
|
||||
build_shader triangle
|
||||
build_shader vertexpull
|
Reference in New Issue
Block a user