|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| Element & MayaFlux::Portal::Forma::Element::with_texture | ( | const std::shared_ptr< Core::VKImage > & | image, |
| Kinesis::AABB2D | region = { .min = glm::vec2(-1.F), .max = glm::vec2(1.F) } |
||
| ) |
Submit a UV quad covering region and bind image as "texSampler" on the attached FormaBuffer.
buffer must already be set and created with an additional_textures slot at index 0. Any source is valid: a loaded PNG, a render target, a TextureBuffer or TextBuffer via get_texture().
| image | GPU-resident VKImage in shader-read layout. |
| region | NDC quad extent. Defaults to fullscreen. |
Definition at line 31 of file Element.cpp.
References buffer, image, and texture.
Referenced by with_texture().
Here is the caller graph for this function: