Add in.dt, slider warnings in --check, and two agent-written effects

Spec fixes come from a test where pi + deepseek-v4.1-flash wrote effects
from EFFECTS.md alone: glitch-blocks and ghost-stamps both compiled on the
first try. The agent's feedback led to in.dt (frame time), documented
limits of in.prev as memory, and a --check warning for ignored slider lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Rasyidan Akbar F. 2026-10-05 20:50:31 +07:00
commit 169c5f9b63
6 changed files with 111 additions and 9 deletions

View file

@ -51,6 +51,10 @@ if CommandLine.arguments.contains("--check") {
_ = try makePipeline(device, source: effectShader(body: source, params: info.params),
fragment: "effectFragment", format: .bgra8Unorm)
print("ok \(name) sliders: \(info.params.isEmpty ? "none" : info.params.map(\.name).joined(separator: ", "))")
let sliderLines = source.split(separator: "\n").filter { $0.hasPrefix("// slider") }.count
if sliderLines != info.params.count {
print(" warning: \(sliderLines - info.params.count) slider line(s) ignored (malformed, or over the limit of \(maxParams))")
}
} catch {
failures += 1
print("FAIL \(name)\n\(error.localizedDescription)")