Handbook
Glossary
vertex-type-size ( component-type -- size )
Vocabulary
gpu
.
shaders
.
private
Inputs
component-type
an
object
Outputs
size
an
object
Definition
USING:
combinators
images
;
IN:
gpu.shaders.private
:
vertex-type-size
( component-type -- size )
{
{
ubyte-components
[
1
]
}
{
ushort-components
[
2
]
}
{
uint-components
[
4
]
}
{
half-components
[
2
]
}
{
float-components
[
4
]
}
{
byte-integer-components
[
1
]
}
{
short-integer-components
[
2
]
}
{
int-integer-components
[
4
]
}
{
ubyte-integer-components
[
1
]
}
{
ushort-integer-components
[
2
]
}
{
uint-integer-components
[
4
]
}
}
case
;