Handbook
Glossary
(color-attachment-type) ( framebuffer index -- type )
Vocabulary
gpu
.
framebuffers
.
private
Inputs
framebuffer
an
object
index
an
object
Outputs
type
an
object
Definition
USING:
accessors
combinators
gpu.framebuffers
images
kernel
sequences
;
IN:
gpu.framebuffers.private
:
(color-attachment-type)
( framebuffer index -- type )
swap
color-attachments>>
nth
attachment-object
component-type>>
{
{
[
dup
signed-unnormalized-integer-components?
]
[
drop
int-type
]
}
{
[
dup
unsigned-unnormalized-integer-components?
]
[
drop
uint-type
]
}
[
drop
float-type
]
}
cond
;