Handbook
Glossary
GLSL-SHADER-FILE:
GPU-accelerated rendering
ยป
Shader objects
Prev:
GLSL-SHADER:
Next:
<program-instance> ( program: program -- instance: program-instance )
Vocabulary
gpu
.
shaders
Syntax
GLSL-SHADER-FILE: shader-name shader-kind "filename"
Word description
Defines a new
shader
of kind
shader-kind
named
shader-name
. The shader will read its source code from
filename
in the current Factor source file's directory.
See also
GLSL-PROGRAM:
,
GLSL-SHADER:
Definition
USING:
combinators
gpu.shaders.private
io.encodings.ascii
io.files
kernel
parser
words
words.constant
;
IN:
gpu.shaders
SYNTAX:
GLSL-SHADER-FILE:
scan-new
dup
dup
old-instances
[
scan-word
( -- kind )
execute-effect
scan-object
in-word's-path
0
over
ascii
file-contents
]
dip
shader
boa
over
reset-generic
define-constant
;