krauthaufen/FShade
46.5
Weak · 15 November 2026
39.5k
lines of production code
F#
primary language
5
measurements over time
What this system is
Features
Added SPIR-V core specification data and code generation scaffolding
The \src/Libs/FShade.SpirV/Core\ directory now includes the Khronos SPIR-V grammar specification files (\spirv.json\ and \spirv.core.grammar.json\) alongside new F\# source files (\NewCodeGen.fsx\, \SpirVInstructions.fs\, \SpirVTypes.fs\) that define the core types, enumerations, and instruction structures for the SPIR-V standard. This change establishes the foundational data model and a code-generation script for SPIR-V assembly/disassembly, supporting intrinsic functions while explicitly excluding texture operations for now.
src/Libs/FShade.SpirV/Core · high confidence
Initial release of FShade.SpirV shader backend
This change introduces the new FShade.SpirV library, providing a backend that compiles F\# shader modules into SPIR-V binary format. The implementation includes an assembler module that maps F\# mathematical functions (such as trigonometric operations) to GLSL standard 450 intrinsic instructions, utility modules for managing SPIR-V state and identifiers, and extension methods to integrate the compilation pipeline with the existing FShade module compiler. The package depends on Aardvark.Base and FSharp.Core.
src/Libs/FShade.SpirV · high confidence
Initial release of the FShade GLSL backend
This change introduces the FShade.GLSL library, providing a new backend for compiling F\# shader code into GLSL. The implementation includes an assembler, intrinsic function mappings for standard GLSL operations, and support for various shader stages including compute and raytracing. It also features configuration options for GLSL versions, extensions, and uniform buffer layouts, along with serialization capabilities for compiled shaders.
src/Libs/FShade.GLSL · high confidence
Introduce AOT shader preprocessor with double-checking and IL analysis
The \src/FShade.Preprocessor\ module now provides a new Ahead-Of-Time (AOT) compilation pipeline for shaders. This includes a \DoubleChecker\ that validates shader expressions against specific builder types (e.g., \VertexBuilder\, \FragmentBuilder\) and tensor types (e.g., \V2d\, \V3d\), an \Interpreter\ that resolves IL instructions to runtime types and methods via \Mono.Cecil\, and a \Program\ entry point that loads assemblies into an isolated context to identify replaceable shader compile methods. The implementation relies on \Mono.Cecil\ for IL manipulation and \Aardvark.Build\ for build integration, enabling static analysis and transformation of F\# shader code before runtime execution.
src/FShade.Preprocessor · high confidence
Introduction of FShade.Core as the foundational shader library
The FShade.Core package has been introduced to serve as the central foundation for the FShade shader generation system. This new library consolidates core shader abstractions, including the Effect model with per-output dependency tracking, the EffectInputLayout for unified input and uniform management, and the ComputeShader implementation for compute pipeline support. It also provides the core frontend primitives (Point, Line, Triangle, Patches), a comprehensive set of shader intrinsics and semantic attributes, and the expression optimizer responsible for constant folding, dead-code elimination, and inlining. Additionally, it establishes the foundational types for raytracing, such as RayId, MissId, and CallableId, effectively unifying the core logic previously scattered across other components.
src/Libs/FShade.Core · high confidence
Introduction of the Imperative Shader Backend
The FShade.Imperative library has been introduced as a new backend for compiling shader code. This addition provides the core infrastructure for the imperative shader pipeline, including an Abstract Syntax Tree (Ast.fs) for representing shader constructs, a Compiler module for translating F\# expressions into intermediate representations, and a ModuleCompiler for managing global dependencies and optimization. It also defines essential types for shader stages, raytracing data, and intrinsic attributes, enabling the framework to generate shader code using this new imperative approach.
src/Libs/FShade.Imperative · high confidence
New FShade.Debug library for shader debugging
A new FShade.Debug library has been introduced to provide a debugger and on-the-fly editor for FShade shaders. This component enables developers to inspect shader code, resolve source locations, and manage project dependencies during the debugging process. It includes features such as file watching for detecting changes, support for various .NET frameworks, and the ability to handle different types of shaders including compute and raytracing shaders.
src/Libs/FShade.Debug · high confidence
Architecture
Solution reorganized with new project structure
The FShade solution has been restructured to include new projects for GLSL and SPIR-V compilation, alongside core and imperative libraries. This change updates the solution file to reflect the new project hierarchy and build configurations, impacting how the project is built and maintained.
src · high confidence
Behavioural changes
1 commit (0 fixes) modifying Artwork, BinPrebuilt
A change to existing behaviour in Artwork, BinPrebuilt — 1 commit, 19 files: “FShade: added Demo-Renderer / Icons / Runtime-Editor;”.
Artwork, BinPrebuilt · medium confidence · unverified
Test coverage
Added GLSL test suite for shader compilation and validation; Added demo tests for shader input layout unification and utility function handling; Initial test suite for FShade.Core.
Dependencies
Added FShade paket template for package metadata
A new paket.template file has been added to the bin directory, defining the metadata and dependencies for the FShade package. This template specifies the project as an F\# embedded shader library authored by Georg Haaser, links to the Apache 2.0 license and GitHub repository, and declares dependencies on FShade.Imperative, FShade.Core, FShade.GLSL, and FShade.SpirV at the current version.
bin · high confidence
Upgrade to .NET 8 and Aardvark.Base 5.3
The project has been upgraded to target .NET 8 (alongside netstandard2.0) and updated to use Aardvark.Base version 5.3.18, FSharp.Core 8.0, and Aardvark.Build 2.0.4. This change also introduces a new \fshadeaot\ tool project for ahead-of-time compilation and restructures the library dependencies to use the updated Paket dependency management system.
(dependencies) · high confidence
Housekeeping
Initial repository structure and build configuration
The repository is initialized with the core project documentation (README.md) and a comprehensive release history (RELEASE\_NOTES.md) detailing the library's evolution. Build and packaging workflows are established via shell and batch scripts (build.sh, build.cmd, pack.cmd) alongside a global.json file pinning the .NET SDK to version 8.0.100. The .gitignore file is updated to standardize package directory casing and exclude IDE-specific configuration folders for Visual Studio, VS Code, and JetBrains Rider.
(repo-wide) · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 48 → 47 (-1.0)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.
Lenses
- Code Health 52 → 44 (-7.9)
- Architecture 97 → 97 (+0.0)
- Maturity 38 → 42 (+4.2)
- Readiness 41 → 41 (-0.2)
- Security 77 → 71 (-5.8)
Resolved (203)
- Duplicated block (10 lines × 2) (src/Libs/FShade.Core/Frontend.fs)
- Duplicated block (10 lines × 2) (src/Libs/FShade.Core/Reflection.fs)
- Duplicated block (10 lines × 2) (src/Libs/FShade.GLSL/Assembler.fs)
- Duplicated block (10 lines × 2) (src/Libs/FShade.GLSL/UniformBufferLayout.fs)
- Duplicated block (10 lines × 3) (src/Libs/FShade.Core/Samplers.fs)
- Duplicated block (10 lines × 3) (src/Libs/FShade.Core/Samplers.fs)
- Duplicated block (10 lines × 4) (src/Libs/FShade.Core/Samplers.fs)
- Duplicated block (10 lines × 4) (src/Libs/FShade.Core/Samplers.fs)
- Duplicated block (10 lines × 4) (src/Libs/FShade.Core/Samplers.fs)
- Duplicated block (10–11 lines × 2) (src/Libs/FShade.Core/Serializer.fs)
- Duplicated block (10–11 lines × 2) (src/Libs/FShade.SpirV/Assembler.fs)
- Duplicated block (10–13 lines × 5) (src/Libs/FShade.Core/Frontend.fs)
- Duplicated block (11 lines × 2) (src/Libs/FShade.Core/Optimizer.fs)
- Duplicated block (11 lines × 2) (src/Libs/FShade.GLSL/IntrinsicFunctions.fs)
- Duplicated block (11 lines × 3) (src/Libs/FShade.Core/Samplers.fs)
- Duplicated block (11 lines × 9) (src/Libs/FShade.Core/Samplers.fs)
- Duplicated block (11 lines × 9) (src/Libs/FShade.Core/Samplers.fs)
- Duplicated block (11–12 lines × 2) (src/Libs/FShade.Core/Serializer.fs)
- Duplicated block (11–12 lines × 2) (src/Libs/FShade.SpirV/Assembler.fs)
- Duplicated block (12 lines × 2) (src/Libs/FShade.Core/Reflection.fs)
- …and 183 more
New (11)
- Low coverage: src/Libs/FShade.Core/Effect.fs (src/Libs/FShade.Core/Effect.fs)
- Low coverage: src/Libs/FShade.Core/Frontend.fs (src/Libs/FShade.Core/Frontend.fs)
- Low coverage: src/Libs/FShade.Core/Intrinsics.fs (src/Libs/FShade.Core/Intrinsics.fs)
- Low coverage: src/Libs/FShade.Core/RaytracingSER.fs (src/Libs/FShade.Core/RaytracingSER.fs)
- Low coverage: src/Libs/FShade.Core/Samplers.fs (src/Libs/FShade.Core/Samplers.fs)
- Low coverage: src/Libs/FShade.Core/ShaderDebugger.fs (src/Libs/FShade.Core/ShaderDebugger.fs)
- Low coverage: src/Libs/FShade.Core/TopLevelOperators.fs (src/Libs/FShade.Core/TopLevelOperators.fs)
- Low coverage: src/Libs/FShade.Imperative/Ast.fs (src/Libs/FShade.Imperative/Ast.fs)
- No ADRs found (src/FShade.Preprocessor/fshadeaot.fsproj)
- No test project references fshadeaot (src/FShade.Preprocessor/fshadeaot.fsproj)
- Off-boarding risk: anonymized user #1
Changes since last survey
- 1 commits — 1 feature/other, 0 fixes
By area
- (root) — 1 commit
Notable commits
- change: Update RELEASE_NOTES.md
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
krauthaufen/FShade was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 15 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 916f103676bb8b30cf12c3d764d9e06e46ebf9b1 — the exact code this score is about.
- Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-3c33c1882dc1.