openrndr / org.openrndr.draw / AtomicCounterBuffer

AtomicCounterBuffer

interface AtomicCounterBuffer (source)

Functions

destroy

abstract fun destroy(): Unit

read

abstract fun read(): IntArray

reset

Reset all the counters to 0

abstract fun reset(): Unit

write

abstract fun write(data: IntArray): Unit

Companion Object Functions

create

fun create(counterCount: Int): AtomicCounterBuffer