Add GPU image primitives (gpu-make-image, gpu-gradient)
Some checks are pending
GPU Worker CI/CD / test (push) Waiting to run
GPU Worker CI/CD / deploy (push) Blocked by required conditions

This commit is contained in:
giles
2026-02-04 10:05:09 +00:00
parent 76bf19b8ab
commit 70530e5c92
2 changed files with 74 additions and 3 deletions

View File

@@ -27,10 +27,10 @@
:ripple_phase "t * 2.0f"
:brightness_factor "0.8f + 0.4f * sinf(t * 2.0f)"})
;; Frame pipeline - creates image and applies autonomous pipeline
;; Frame pipeline - creates image ON GPU and applies autonomous pipeline
(frame
(let [;; Create base gradient (still needs Python for now)
base (image:make-image 1920 1080 [128 100 200])]
(let [;; Create base image ON GPU (no CPU involvement!)
base (streaming_gpu:gpu-make-image 1920 1080 [128 100 200])]
;; Apply autonomous pipeline - ALL EFFECTS + ALL MATH ON GPU!
(streaming_gpu:autonomous-pipeline base effects expressions frame-num 30.0))))