Horizon shader packs: the check every pack passes before it runs
horizon_shader_api::check builds each stage as the renderer does and judges it the same way wherever it runs (the game, the launcher, the registry's CI, the coming horizon-shader tool): naga parses and validates it; the stage function must have its signature; the pack's files declare no bindings, no entry points and no horizon_ names; each override is an option of its type or has a default, and each option is used; a stage stays within 20 000 expressions and 64 texture reads; and every entry point translates to SPIR-V, Metal and HLSL with the options at their defaults, minimums and maximums. Problems carry the pack's own file, line and column. Pack::sha256 gives the reproducible package's hash. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Generated
+1
@@ -1444,6 +1444,7 @@ dependencies = [
|
||||
"bytemuck",
|
||||
"naga",
|
||||
"serde",
|
||||
"sha2",
|
||||
"toml",
|
||||
"zip",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user