DeleteComputeShader

Family: Compute · One form

What it does

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

Syntax

DeleteComputeShader(shaderID integer)

Parameters

NameType
shaderIDinteger

Every form returns

nothing

Example · generated

shader = CreateComputeShader("@compute fn main() {}", "{}")DeleteComputeShader(shader)DO  Sync()LOOP

CreateComputeShader is there to give the call something to act on; DeleteComputeShader 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