MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ with_texture() [1/2]

Element & MayaFlux::Portal::Forma::Element::with_texture ( const std::shared_ptr< Buffers::TextureBuffer > &  buf,
Kinesis::AABB2D  region = { .min = glm::vec2(-1.F), .max = glm::vec2(1.F) } 
)

Convenience overload extracting the GPU texture from a TextureBuffer (or TextBuffer, which inherits it).

Equivalent to with_texture(buf->get_texture(), region).

Definition at line 34 of file Element.cpp.

37{
38 return with_texture(buf->get_texture(), region);
39}
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.
Definition Element.cpp:21

References with_texture().

+ Here is the call graph for this function: