MayaFlux 0.4.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 44 of file Element.cpp.

47{
48 return with_texture(buf->get_texture(), region);
49}
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:31

References with_texture().

+ Here is the call graph for this function: