each-attachment-target ( framebuffer quot: ( attachment-target attachment -- ) -- )


Vocabulary
gpu.framebuffers.private

Inputs
framebufferan object
quota quotation with stack effect ( attachment-target attachment -- )


Outputs
None

Definition


:: each-attachment-target
( framebuffer quot: ( attachment-target attachment -- ) -- )
framebuffer color-attachments>> [| attachment n |
n GL_COLOR_ATTACHMENT0 + attachment quot call
] each-index framebuffer depth-attachment>>
[| attachment | GL_DEPTH_ATTACHMENT attachment quot call ]
when* framebuffer stencil-attachment>>
[| attachment | GL_STENCIL_ATTACHMENT attachment quot call ]
when* ; inline