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
| Name | Type |
|---|---|
| shaderID | integer |
Every form returns
nothing
Example · generated
shader = CreateComputeShader("@compute fn main() {}", "{}")DeleteComputeShader(shader)DO Sync()LOOPCreateComputeShader 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.