Handbook
Glossary
color-attachment-image-type ( framebuffer attachment-ref -- order type )
Vocabulary
gpu
.
framebuffers
.
private
Inputs
framebuffer
an
object
attachment-ref
an
object
Outputs
order
an
object
type
an
object
Definition
USING:
accessors
gpu.framebuffers
images
kernel
sequences
variants
;
IN:
gpu.framebuffers.private
:
color-attachment-image-type
( framebuffer attachment-ref -- order type )
{
{
color-attachment
[
swap
color-attachments>>
nth
attachment-object
[
component-order>>
]
[
component-type>>
]
bi
]
}
{
system-attachment
[
3drop
RGBA
ubyte-components
]
}
{
default-attachment
[
(default-attachment-image-type)
]
}
}
match
;