DeleteComputeBuffer

Family: Compute · One form

What it does

DeleteComputeBuffer deletes Buffer on a Compute object. It takes bufferID (an integer), and returns nothing. bufferID is the id of a Buffer object, obtained elsewhere in the Compute family.

Syntax

DeleteComputeBuffer(bufferID integer)

Parameters

NameType
bufferIDinteger

Every form returns

nothing

Example · generated

buffer = CreateComputeBuffer(10, "value")DeleteComputeBuffer(buffer)DO  Sync()LOOP

CreateComputeBuffer is there to give the call something to act on; DeleteComputeBuffer 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.

Related commands

14 commands in Compute