Handbook
Glossary
<compute-program> ( compute-shader-source -- program )
Vocabulary
opengl
.
shaders
Inputs
compute-shader-source
A string containing GLSL compute shader source
Outputs
program
a new
gl-program
Word description
Wrapper for
<gl-program>
for the simple case of compiling a compute shader and linking them into a GLSL program. Throws an exception if compiling or linking fails.
Definition
USING:
arrays
;
IN:
opengl.shaders
:
<compute-program>
( compute-shader-source -- program )
<compute-shader>
check-gl-shader
1array
<gl-program>
;