Handbook
Glossary
<2d-render-texture> ( dim order type -- renderbuffer texture )
Vocabulary
gpu
.
util
Inputs
dim
an
object
order
an
object
type
an
object
Outputs
renderbuffer
an
object
texture
an
object
Definition
USING:
arrays
gpu.framebuffers
gpu.textures
kernel
;
IN:
gpu.util
::
<2d-render-texture>
( dim order type -- renderbuffer texture )
order type
T{
texture-parameters
{
wrap
clamp-texcoord-to-edge
}
{
min-filter
filter-linear
}
{
min-mipmap-filter
f
}
}
<texture-2d>
[
0
<texture-2d-attachment>
1array
f
f
dim
<framebuffer>
dup
{
{
default-attachment
{
0 0 0
}
}
}
clear-framebuffer
]
keep
;