Browse Source

Add get-num-task-threads function

master
Macoy Madson 8 months ago
parent
commit
9d32a27a02
  1. 5
      src/TaskSystem.cake

5
src/TaskSystem.cake

@ -73,6 +73,11 @@
(defun task-system-wait-for-all ()
(enkiWaitForAll (field g-task-system task-scheduler)))
(defun task-system-get-num-task-threads (&return (unsigned int))
(return
(type-cast (enkiGetNumTaskThreads (field g-task-system task-scheduler))
(unsigned int))))
;; Creates a task function with destructured arguments and the appropriate signature for TaskSystem
;; The following variables are implicit to task context:
;; - task-range-start uint32_t

Loading…
Cancel
Save