Handbook
Glossary
gl-buffer-usage ( buffer -- usage )
Vocabulary
gpu
.
buffers
.
private
Inputs
buffer
an
object
Outputs
usage
an
object
Definition
USING:
accessors
arrays
combinators
gpu.buffers
kernel
opengl.gl
;
IN:
gpu.buffers.private
:
gl-buffer-usage
( buffer -- usage )
[
upload-pattern>>
]
[
usage-pattern>>
]
bi
2array
{
{
{
stream-upload
draw-usage
}
[
GL_STREAM_DRAW
]
}
{
{
stream-upload
read-usage
}
[
GL_STREAM_READ
]
}
{
{
stream-upload
copy-usage
}
[
GL_STREAM_COPY
]
}
{
{
static-upload
draw-usage
}
[
GL_STATIC_DRAW
]
}
{
{
static-upload
read-usage
}
[
GL_STATIC_READ
]
}
{
{
static-upload
copy-usage
}
[
GL_STATIC_COPY
]
}
{
{
dynamic-upload
draw-usage
}
[
GL_DYNAMIC_DRAW
]
}
{
{
dynamic-upload
read-usage
}
[
GL_DYNAMIC_READ
]
}
{
{
dynamic-upload
copy-usage
}
[
GL_DYNAMIC_COPY
]
}
}
case
;
inline