mirror of
https://github.com/Toastconcern/FrameStudio.git
synced 2026-10-29 04:02:56 +01:00
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>
67 lines
5.0 KiB
C++
67 lines
5.0 KiB
C++
#pragma once
|
|
// GENERATED by tools/guide/gen_guide_spirv.sh from tools/guide/guide.{vert,frag}. Do not edit by hand.
|
|
// vert: in vec3 position @0, vec4 color @1; push { mat4 clipFromWorld[2]; }; spec 0 = alpha scale
|
|
// frag: out = color
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
|
|
static const uint32_t kGuideVertSpirv[] = {
|
|
0x07230203,0x00010300,0x000d000b,0x00000037,0x00000000,0x00020011,0x00000001,0x00020011,
|
|
0x00001157,0x0006000b,0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,
|
|
0x00000000,0x00000001,0x000a000f,0x00000000,0x00000004,0x6e69616d,0x00000000,0x0000000d,
|
|
0x00000017,0x0000001e,0x00000028,0x0000002a,0x00030047,0x0000000b,0x00000002,0x00050048,
|
|
0x0000000b,0x00000000,0x0000000b,0x00000000,0x00050048,0x0000000b,0x00000001,0x0000000b,
|
|
0x00000001,0x00050048,0x0000000b,0x00000002,0x0000000b,0x00000003,0x00050048,0x0000000b,
|
|
0x00000003,0x0000000b,0x00000004,0x00040047,0x00000012,0x00000006,0x00000040,0x00030047,
|
|
0x00000013,0x00000002,0x00040048,0x00000013,0x00000000,0x00000005,0x00050048,0x00000013,
|
|
0x00000000,0x00000007,0x00000010,0x00050048,0x00000013,0x00000000,0x00000023,0x00000000,
|
|
0x00040047,0x00000017,0x0000000b,0x00001158,0x00040047,0x0000001e,0x0000001e,0x00000000,
|
|
0x00040047,0x00000028,0x0000001e,0x00000000,0x00040047,0x0000002a,0x0000001e,0x00000001,
|
|
0x00040047,0x00000031,0x00000001,0x00000000,0x00020013,0x00000002,0x00030021,0x00000003,
|
|
0x00000002,0x00030016,0x00000006,0x00000020,0x00040017,0x00000007,0x00000006,0x00000004,
|
|
0x00040015,0x00000008,0x00000020,0x00000000,0x0004002b,0x00000008,0x00000009,0x00000001,
|
|
0x0004001c,0x0000000a,0x00000006,0x00000009,0x0006001e,0x0000000b,0x00000007,0x00000006,
|
|
0x0000000a,0x0000000a,0x00040020,0x0000000c,0x00000003,0x0000000b,0x0004003b,0x0000000c,
|
|
0x0000000d,0x00000003,0x00040015,0x0000000e,0x00000020,0x00000001,0x0004002b,0x0000000e,
|
|
0x0000000f,0x00000000,0x00040018,0x00000010,0x00000007,0x00000004,0x0004002b,0x00000008,
|
|
0x00000011,0x00000002,0x0004001c,0x00000012,0x00000010,0x00000011,0x0003001e,0x00000013,
|
|
0x00000012,0x00040020,0x00000014,0x00000009,0x00000013,0x0004003b,0x00000014,0x00000015,
|
|
0x00000009,0x00040020,0x00000016,0x00000001,0x0000000e,0x0004003b,0x00000016,0x00000017,
|
|
0x00000001,0x00040020,0x00000019,0x00000009,0x00000010,0x00040017,0x0000001c,0x00000006,
|
|
0x00000003,0x00040020,0x0000001d,0x00000001,0x0000001c,0x0004003b,0x0000001d,0x0000001e,
|
|
0x00000001,0x0004002b,0x00000006,0x00000020,0x3f800000,0x00040020,0x00000026,0x00000003,
|
|
0x00000007,0x0004003b,0x00000026,0x00000028,0x00000003,0x00040020,0x00000029,0x00000001,
|
|
0x00000007,0x0004003b,0x00000029,0x0000002a,0x00000001,0x0004002b,0x00000008,0x0000002d,
|
|
0x00000003,0x00040020,0x0000002e,0x00000001,0x00000006,0x00040032,0x00000006,0x00000031,
|
|
0x3f800000,0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8,0x00000005,
|
|
0x0004003d,0x0000000e,0x00000018,0x00000017,0x00060041,0x00000019,0x0000001a,0x00000015,
|
|
0x0000000f,0x00000018,0x0004003d,0x00000010,0x0000001b,0x0000001a,0x0004003d,0x0000001c,
|
|
0x0000001f,0x0000001e,0x00050051,0x00000006,0x00000021,0x0000001f,0x00000000,0x00050051,
|
|
0x00000006,0x00000022,0x0000001f,0x00000001,0x00050051,0x00000006,0x00000023,0x0000001f,
|
|
0x00000002,0x00070050,0x00000007,0x00000024,0x00000021,0x00000022,0x00000023,0x00000020,
|
|
0x00050091,0x00000007,0x00000025,0x0000001b,0x00000024,0x00050041,0x00000026,0x00000027,
|
|
0x0000000d,0x0000000f,0x0003003e,0x00000027,0x00000025,0x0004003d,0x00000007,0x0000002b,
|
|
0x0000002a,0x00050041,0x0000002e,0x0000002f,0x0000002a,0x0000002d,0x0004003d,0x00000006,
|
|
0x00000030,0x0000002f,0x00050085,0x00000006,0x00000032,0x00000030,0x00000031,0x00050051,
|
|
0x00000006,0x00000033,0x0000002b,0x00000000,0x00050051,0x00000006,0x00000034,0x0000002b,
|
|
0x00000001,0x00050051,0x00000006,0x00000035,0x0000002b,0x00000002,0x00070050,0x00000007,
|
|
0x00000036,0x00000033,0x00000034,0x00000035,0x00000032,0x0003003e,0x00000028,0x00000036,
|
|
0x000100fd,0x00010038,
|
|
};
|
|
static const size_t kGuideVertSize = sizeof(kGuideVertSpirv);
|
|
|
|
static const uint32_t kGuideFragSpirv[] = {
|
|
0x07230203,0x00010300,0x000d000b,0x0000000d,0x00000000,0x00020011,0x00000001,0x0006000b,
|
|
0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,
|
|
0x0007000f,0x00000004,0x00000004,0x6e69616d,0x00000000,0x00000009,0x0000000b,0x00030010,
|
|
0x00000004,0x00000007,0x00040047,0x00000009,0x0000001e,0x00000000,0x00040047,0x0000000b,
|
|
0x0000001e,0x00000000,0x00020013,0x00000002,0x00030021,0x00000003,0x00000002,0x00030016,
|
|
0x00000006,0x00000020,0x00040017,0x00000007,0x00000006,0x00000004,0x00040020,0x00000008,
|
|
0x00000003,0x00000007,0x0004003b,0x00000008,0x00000009,0x00000003,0x00040020,0x0000000a,
|
|
0x00000001,0x00000007,0x0004003b,0x0000000a,0x0000000b,0x00000001,0x00050036,0x00000002,
|
|
0x00000004,0x00000000,0x00000003,0x000200f8,0x00000005,0x0004003d,0x00000007,0x0000000c,
|
|
0x0000000b,0x0003003e,0x00000009,0x0000000c,0x000100fd,0x00010038,
|
|
};
|
|
static const size_t kGuideFragSize = sizeof(kGuideFragSpirv);
|
|
|