What it does
ComputeBufferType takes bufferID (an integer), and answers a string. bufferID is the id of a Buffer object, obtained elsewhere in the Compute family.
Syntax
ComputeBufferType(bufferID integer) → stringParameters
| Name | Type |
|---|---|
| bufferID | integer |
Every form returns
string
Example · generated
buffer = CreateComputeBuffer(10, "value")DO Print(ComputeBufferType(buffer)) Sync()LOOPCreateComputeBuffer is there to give the call something to act on; ComputeBufferType 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.