eradicate string c-types from gpu.shaders
parent
1fb7cf37c4
commit
162ae0346f
|
@ -8,7 +8,8 @@ literals locals math math.parser memoize multiline namespaces
|
||||||
opengl opengl.gl opengl.shaders parser quotations sequences
|
opengl opengl.gl opengl.shaders parser quotations sequences
|
||||||
specialized-arrays splitting strings tr ui.gadgets.worlds
|
specialized-arrays splitting strings tr ui.gadgets.worlds
|
||||||
variants vectors vocabs vocabs.loader vocabs.parser words
|
variants vectors vocabs vocabs.loader vocabs.parser words
|
||||||
words.constant ;
|
words.constant half-floats ;
|
||||||
|
QUALIFIED-WITH: alien.c-types c
|
||||||
SPECIALIZED-ARRAY: int
|
SPECIALIZED-ARRAY: int
|
||||||
SPECIALIZED-ARRAY: void*
|
SPECIALIZED-ARRAY: void*
|
||||||
IN: gpu.shaders
|
IN: gpu.shaders
|
||||||
|
@ -226,17 +227,17 @@ M: f (verify-feedback-format)
|
||||||
|
|
||||||
: component-type>c-type ( component-type -- c-type )
|
: component-type>c-type ( component-type -- c-type )
|
||||||
{
|
{
|
||||||
{ ubyte-components [ "uchar" ] }
|
{ ubyte-components [ c:uchar ] }
|
||||||
{ ushort-components [ "ushort" ] }
|
{ ushort-components [ c:ushort ] }
|
||||||
{ uint-components [ "uint" ] }
|
{ uint-components [ c:uint ] }
|
||||||
{ half-components [ "half" ] }
|
{ half-components [ half ] }
|
||||||
{ float-components [ "float" ] }
|
{ float-components [ c:float ] }
|
||||||
{ byte-integer-components [ "char" ] }
|
{ byte-integer-components [ c:char ] }
|
||||||
{ ubyte-integer-components [ "uchar" ] }
|
{ ubyte-integer-components [ c:uchar ] }
|
||||||
{ short-integer-components [ "short" ] }
|
{ short-integer-components [ c:short ] }
|
||||||
{ ushort-integer-components [ "ushort" ] }
|
{ ushort-integer-components [ c:ushort ] }
|
||||||
{ int-integer-components [ "int" ] }
|
{ int-integer-components [ c:int ] }
|
||||||
{ uint-integer-components [ "uint" ] }
|
{ uint-integer-components [ c:uint ] }
|
||||||
} case ;
|
} case ;
|
||||||
|
|
||||||
: c-array-dim ( type dim -- type' )
|
: c-array-dim ( type dim -- type' )
|
||||||
|
|
Loading…
Reference in New Issue