$ show Themaister/Granite
Granite is a Vulkan-based real-time 3D rendering engine and application framework developed by Hans-Kristian Arntzen. It provides a comprehensive, modular library for building interactive graphics applications, including a high-level Vulkan abstraction, a declarative render graph with automatic resource management, scene loading (glTF, custom JSON), a full post-processing pipeline (TAA, SMAA, FXAA, HDR, bloom, SSAO, SSR), clustered and volumetric lighting, mesh shaders, and GPU-driven rendering. The framework also includes cross-platform audio (WASAPI, PulseAudio, Oboe) with DSP, video encoding/decoding via FFmpeg, a physics system (Bullet), a UI widget system, an entity-component system, and a flexible filesystem abstraction with network VFS support. The codebase is production-quality with advanced Vulkan feature usage, extensive tests, and tools for asset processing. While the author explicitly discourages external contributions, the repository remains actively maintained and showcases high craftsmanship in graphics engineering.
The LLM identified 5 files worth highlighting for reuse:
Declarative render pass graph that automatically manages Vulkan barriers, subpass merging, load/store operations, and async compute. Encapsulates complex synchronization logic into a clean, reusable pattern suitable for any Vulkan-based renderer.
Non-owning, cache-friendly hash map with thread-safe variants and a read-cached split for lock-free read promotion. Demonstrates advanced memory and concurrency patterns for high-performance systems.
Central shader management system that compiles GLSL to SPIR-V at runtime (or offline), manages variant generation, caches compiled shaders, and supports hot-reload via file watching. Represents a robust, reusable shader pipeline for Vulkan engines.
Protocol-based filesystem abstraction with pluggable backends (OS files, Android assets, network VFS, blob archives) and notification support. Clean interface that decouples asset loading from platform specifics.
Template-free, per-platform SIMD intrinsics (SSE, NEON) for common graphics math operations: matrix multiplication, AABB transform, frustum culling. Self-contained and easily extractable as a lightweight math kernel.