Attachments
extern (C)
struct Attachments {
}
- colors
View[8] colors;
Undocumented in source.
- depth_stencil
View depth_stencil;
Undocumented in source.
- resolves
View[8] resolves;
Undocumented in source.
sokol gfx
enumsfunctionsmanifest constantsstructs
sg_attachments
Used in sg_pass to provide render pass attachment views. Each type of pass attachment has it corresponding view type:
sg_attachments.colors[]: populate with color-attachment views, e.g.:
sg_make_view(&(sg_view_desc){ .color_attachment = { ... }, });
sg_attachments.resolves[]: populate with resolve-attachment views, e.g.:
sg_make_view(&(sg_view_desc){ .resolve_attachment = { ... }, });
sg_attachments.depth_stencil: populate with depth-stencil-attachment views, e.g.:
sg_make_view(&(sg_view_desc){ .depth_stencil_attachment = { ... }, });