summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chickadee/graphics/seagull.scm5
1 files changed, 5 insertions, 0 deletions
diff --git a/chickadee/graphics/seagull.scm b/chickadee/graphics/seagull.scm
index 408dbc4..8409503 100644
--- a/chickadee/graphics/seagull.scm
+++ b/chickadee/graphics/seagull.scm
@@ -3414,6 +3414,11 @@ vec4 texture(samplerCube tex, vec3 coord) {
;;; REPL integration
;;;
+(define-meta-command ((seagull-expand chickadee) repl stage exp)
+ "seagull-expand STAGE EXP
+Run the expander on EXP for shader STAGE."
+ (pretty-print (expand exp stage (empty-env))))
+
(define-meta-command ((seagull-inspect chickadee) repl module)
"seagull-inspect MODULE
Show the intermediate compiled form of MODULE."