Handbook
Glossary
shader
Vocabulary
gpu
.
shaders
Class description
A
shader
provides a block of GLSL source code that can be compiled into a
shader-instance
in a graphics context. Shaders are defined with
GLSL-SHADER:
or
GLSL-SHADER-FILE:
and instantiated for a context with
<shader-instance>
.
Definition
USING:
hashtables
math
strings
words
;
IN:
gpu.shaders
TUPLE:
shader
{
name
word
read-only
initial:
t
}
{
kind
shader-kind
read-only
initial:
vertex-shader
}
{
filename
read-only
}
{
line
integer
read-only
initial:
0
}
{
source
string
initial:
""
}
{
instances
hashtable
read-only
initial:
H{
}
}
;