gpu.shaders vocabulary
Factor handbook > Vocabulary index


Documentation
Shader objects

Meta-data
Authors:Joe Groff


Words

Tuple classes
ClassSuperclassSlots
compile-shader-error tupleshader log
inaccurate-feedback-attribute-error tupleattribute
invalid-link-feedback-format-error tupleformat
link-program-error tupleprogram log
program tuplename filename line shaders vertex-formats feedback-format geometry-shader-parameters instances
program-instance gpu-objectprogram world
shader tuplename kind filename line source instances
shader-instance gpu-objectshader world
too-many-feedback-formats-error tupleformats
vertex-array-collection tuplevertex-formats program-instance
vertex-array-object gpu-objectprogram-instance vertex-buffers
vertex-attribute tuplename component-type dim normalize?


Singleton classes
fragment-shader
geometry-shader
line-strips-output
lines-input
lines-with-adjacency-input
points-input
points-output
triangle-strips-output
triangles-input
triangles-with-adjacency-input
vertex-shader


Mixin classes
geometry-shader-input
geometry-shader-output
shader-kind
vertex-format


Union classes
vertex-array


Parsing words
WordSyntax
GLSL-PROGRAM:GLSL-PROGRAM: program-name shader shader ... [vertex-format vertex-format ...] [feedback-format: vertex-format] ;
GLSL-SHADER-FILE:GLSL-SHADER-FILE: shader-name shader-kind "filename"
GLSL-SHADER:GLSL-SHADER: shader-name shader-kind shader source ;
VERTEX-FORMAT:VERTEX-FORMAT: format-name { "attribute"/f component-type dimension normalize? } { "attribute"/f component-type dimension normalize? } ... { "attribute"/f component-type dimension normalize? } ;
VERTEX-STRUCT:VERTEX-STRUCT: struct-name format-name
feedback-format:feedback-format: vertex-format
geometry-shader-vertices-out:


Generic words
WordStack effect
bind-vertex-array( vertex-array -- )
vertex-array-buffers( vertex-array -- buffers )
vertex-format-size( format -- size )


Ordinary words
WordStack effect
<multi-vertex-array>( vertex-formats program-instance -- vertex-array )
<program-instance>( program: program -- instance: program-instance )
<shader-instance>( shader: shader -- instance: shader-instance )
<vertex-array*>( vertex-buffer program-instance format -- vertex-array )
<vertex-array>( vertex-buffer program-instance -- vertex-array )
?>buffer( buffer/ptr -- buffer )
?>buffer-ptr( buffer/ptr -- buffer-ptr )
attribute-index( program-instance attribute-name -- index )
define-vertex-format( class vertex-attributes -- )
define-vertex-struct( class vertex-format -- )
inaccurate-feedback-attribute-error( attribute -- * )
invalid-link-feedback-format-error( format -- * )
output-index( program-instance output-name -- index )
refresh-program( program: program -- )
throw-compile-shader-error( shader instance -- * )
throw-link-program-error( program instance -- * )
too-many-feedback-formats-error( formats -- * )
uniform-index( program-instance uniform-name -- index )
vertex-array-buffer( vertex-array: vertex-array -- vertex-buffer: buffer )
vertex-format-attributes( vertex-format -- attributes )


Class predicate words
WordStack effect
compile-shader-error?( object -- ? )
fragment-shader?( object -- ? )
geometry-shader-input?( object -- ? )
geometry-shader-output?( object -- ? )
geometry-shader?( object -- ? )
inaccurate-feedback-attribute-error?( object -- ? )
invalid-link-feedback-format-error?( object -- ? )
line-strips-output?( object -- ? )
lines-input?( object -- ? )
lines-with-adjacency-input?( object -- ? )
link-program-error?( object -- ? )
points-input?( object -- ? )
points-output?( object -- ? )
program-instance?( object -- ? )
program?( object -- ? )
shader-instance?( object -- ? )
shader-kind?( object -- ? )
shader?( object -- ? )
too-many-feedback-formats-error?( object -- ? )
triangle-strips-output?( object -- ? )
triangles-input?( object -- ? )
triangles-with-adjacency-input?( object -- ? )
vertex-array-collection?( object -- ? )
vertex-array-object?( object -- ? )
vertex-array?( object -- ? )
vertex-attribute?( object -- ? )
vertex-format?( object -- ? )
vertex-shader?( object -- ? )


Files


Children from resource:extra
VocabularySummary
gpu.shaders.prettyprintgpu.shaders.prettyprint vocabulary


Children
VocabularySummary
gpu.shaders.privategpu.shaders.private vocabulary