What it does
ComputeBufferExists answers a question: whether a Compute object still exists. It takes bufferID (an integer), and answers an integer. bufferID is the id of a Buffer object, obtained elsewhere in the Compute family.
Syntax
ComputeBufferExists(bufferID integer) → integerParameters
| Name | Type |
|---|---|
| bufferID | integer |
Every form returns
integer
Example · generated
buffer = CreateComputeBuffer(10, "value")DO Print(ComputeBufferExists(buffer)) Sync()LOOPCreateComputeBuffer is there to give the call something to act on; ComputeBufferExists is the line that matters. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.