Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/app/electric_flow.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,7 @@


(e/defn Render-with-webgpu []
(let [nu (e/watch !offset)
spend (e/Token nu)
(let [[spend e] (e/Token offset)
dv (e/snapshot device)
con (e/snapshot context)
fmat (e/snapshot format)]
Expand All @@ -155,8 +154,8 @@
(when (some? spend)
(let [rects-data (flatten (into [] (vals all-rects)))
rects-ids (into [] (keys all-rects))
[cx cy] nu
[off-x off-y] (spend (e/Task (m/sleep 25 nu)))
[cx cy] offset
[off-x off-y] (spend (e/Task (m/sleep 25 offset)))
rx (e/amb cx off-x)
ry (e/amb cy off-y)
texts (reduce
Expand Down
Loading