hyphens>underscores in VERTEX-FORMAT for consistency with UNIFORM-TUPLE
parent
1e389c921d
commit
c7dde45c2a
|
@ -8,7 +8,7 @@ gpu.textures gpu.textures.private half-floats images kernel
|
||||||
lexer locals math math.order math.parser namespaces opengl
|
lexer locals math math.order math.parser namespaces opengl
|
||||||
opengl.gl parser quotations sequences slots sorting
|
opengl.gl parser quotations sequences slots sorting
|
||||||
specialized-arrays.alien specialized-arrays.float specialized-arrays.int
|
specialized-arrays.alien specialized-arrays.float specialized-arrays.int
|
||||||
specialized-arrays.uint strings tr ui.gadgets.worlds variants
|
specialized-arrays.uint strings ui.gadgets.worlds variants
|
||||||
vocabs.parser words ;
|
vocabs.parser words ;
|
||||||
IN: gpu.render
|
IN: gpu.render
|
||||||
|
|
||||||
|
@ -338,8 +338,6 @@ DEFER: [bind-uniform-tuple]
|
||||||
texture-unit'
|
texture-unit'
|
||||||
value>>-quot { value-cleave 2cleave } append ;
|
value>>-quot { value-cleave 2cleave } append ;
|
||||||
|
|
||||||
TR: hyphens>underscores "-" "_" ;
|
|
||||||
|
|
||||||
:: [bind-uniform] ( texture-unit uniform prefix -- texture-unit' quot )
|
:: [bind-uniform] ( texture-unit uniform prefix -- texture-unit' quot )
|
||||||
prefix uniform name>> append hyphens>underscores :> name
|
prefix uniform name>> append hyphens>underscores :> name
|
||||||
uniform uniform-type>> :> type
|
uniform uniform-type>> :> type
|
||||||
|
|
|
@ -8,7 +8,7 @@ io.encodings.ascii io.files io.pathnames kernel lexer literals
|
||||||
locals math math.parser memoize multiline namespaces opengl
|
locals math math.parser memoize multiline namespaces opengl
|
||||||
opengl.gl opengl.shaders parser quotations sequences
|
opengl.gl opengl.shaders parser quotations sequences
|
||||||
specialized-arrays.alien specialized-arrays.int splitting
|
specialized-arrays.alien specialized-arrays.int splitting
|
||||||
strings ui.gadgets.worlds variants vectors vocabs vocabs.loader
|
strings tr ui.gadgets.worlds variants vectors vocabs vocabs.loader
|
||||||
vocabs.parser words words.constant ;
|
vocabs.parser words words.constant ;
|
||||||
IN: gpu.shaders
|
IN: gpu.shaders
|
||||||
|
|
||||||
|
@ -65,6 +65,8 @@ MEMO: output-index ( program-instance output-name -- index )
|
||||||
|
|
||||||
<PRIVATE
|
<PRIVATE
|
||||||
|
|
||||||
|
TR: hyphens>underscores "-" "_" ;
|
||||||
|
|
||||||
: gl-vertex-type ( component-type -- gl-type )
|
: gl-vertex-type ( component-type -- gl-type )
|
||||||
{
|
{
|
||||||
{ ubyte-components [ GL_UNSIGNED_BYTE ] }
|
{ ubyte-components [ GL_UNSIGNED_BYTE ] }
|
||||||
|
@ -125,7 +127,7 @@ MEMO: output-index ( program-instance output-name -- index )
|
||||||
} 0&& [ vertex-attribute inaccurate-feedback-attribute-error ] unless ;
|
} 0&& [ vertex-attribute inaccurate-feedback-attribute-error ] unless ;
|
||||||
|
|
||||||
:: [bind-vertex-attribute] ( stride offset vertex-attribute -- stride offset' quot )
|
:: [bind-vertex-attribute] ( stride offset vertex-attribute -- stride offset' quot )
|
||||||
vertex-attribute name>> :> name
|
vertex-attribute name>> hyphens>underscores :> name
|
||||||
vertex-attribute component-type>> :> type
|
vertex-attribute component-type>> :> type
|
||||||
type gl-vertex-type :> gl-type
|
type gl-vertex-type :> gl-type
|
||||||
vertex-attribute dim>> :> dim
|
vertex-attribute dim>> :> dim
|
||||||
|
|
Loading…
Reference in New Issue