Add GPU image primitives (gpu-make-image, gpu-gradient)
This commit is contained in:
@@ -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))))
|
||||
|
||||
Reference in New Issue
Block a user