compile-shader-error ( shader log -- * ) (original) (raw)

compile-shader-error ( shader log -- * )

Vocabulary
gpu.shaders

Class description
An error compiling the source for a shader.

The shader slot indicates the shader that failed to compile.
The log slot contains the error string from the GLSL compiler.

See also
link-program-error

Definition

IN: gpu.shaders

ERROR: compile-shader-error shader log ;

Methods

USING: accessors debugger gpu.shaders io kernel prettyprint ;

M: compile-shader-error error.
"The GLSL shader " write
[ shader>> name>> pprint-short " failed to compile." print ]
[ log>> print ] bi ;