Files
Toastconcern--FrameStudio/tools/fovpass/gen.sh
T
ToastconcernandClaude Opus 5.5 f7345a5ac3 Frame Studio and Frame Home: cross-platform builds
Frame Studio now builds for Windows (x64, x86, ARM64), Linux (x64, x86, ARM64)
and macOS (Apple Silicon, Intel):
- studio/platform.h with Win32 and POSIX implementations (dialogs through
  tinyfiledialogs on Linux/macOS), a GLFW window beside the Win32 one, and a
  platform-neutral frame pacer
- MoltenVK support in the renderer (portability enumeration) and bundled in
  the macOS app
- 32-bit builds: large-address-aware, LZMA packing within a 32-bit address space
- unaligned file reads in the loaders go through loadUnaligned (no UB)
- scripts/build-studio.sh, studio/build_windows.bat [x64|x86|arm64],
  cmake/llvm-mingw.cmake, and a GitHub Actions workflow building every target

Frame Home installs without Studio: frame/install-frame-home.{sh,ps1} and
"Install Frame Home.bat" (packaged as FrameHome-installer.zip).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 12:03:25 -05:00

16 lines
658 B
Bash
Executable File

#!/bin/sh
# Builds src/fov_spirv.h from fovpass.vert/.frag (run on a machine with glslc: the Steam Frame has it).
cd "$(dirname "$0")"
for s in vert frag; do glslc -O --target-env=vulkan1.1 -o fovpass.$s.spv fovpass.$s || exit 1; done
{
echo "#pragma once"
echo "// Generated by tools/fovpass/gen.sh from tools/fovpass/fovpass.vert / .frag: the smooth-foveation pass."
echo "#include <cstdint>"
for s in vert frag; do
n=$( [ $s = vert ] && echo kFovPassVert || echo kFovPassFrag )
echo "static const uint32_t ${n}[] = {"
od -An -v -tx4 fovpass.$s.spv | sed 's/ *\([0-9a-f]\{8\}\)/0x\1u, /g'
echo "};"
done
} > ../../src/fov_spirv.h