Handbook
Glossary
GLSL-SHADER:
GPU-accelerated rendering
ยป
Shader objects
Prev:
GLSL-PROGRAM:
Next:
GLSL-SHADER-FILE:
Vocabulary
gpu
.
shaders
Syntax
GLSL-SHADER: shader-name shader-kind shader source ;
Word description
Defines a new
shader
of kind
shader-kind
named
shader-name
. The shader will read its source code from the current Factor source file between the
GLSL-SHADER:
line and the first subsequent line with a single semicolon on it.
See also
GLSL-PROGRAM:
,
GLSL-SHADER-FILE:
Definition
USING:
accessors
gpu.shaders.private
kernel
lexer
multiline
namespaces
parser
words
words.constant
;
IN:
gpu.shaders
SYNTAX:
GLSL-SHADER:
scan-new
dup
dup
old-instances
[
scan-word
f
lexer
get
line>>
parse-here
]
dip
shader
boa
over
reset-generic
define-constant
;