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

◆ texture()

Assemble & MayaFlux::Portal::Graphics::ShaderSpec::Assemble::texture ( std::string  name)
inline

Declare a sampled image binding (sampler2D).

Definition at line 398 of file ShaderSpec.hpp.

399 {
400 m_bindings.push_back({
401 .name = std::move(name),
402 .direction = BindingDirection::Input,
405 .binding_index = m_next_binding++,
406 });
407 return *this;
408 }

References MayaFlux::Portal::Graphics::Input, m_bindings, m_next_binding, MayaFlux::Kakshya::TEXTURE_2D, and MayaFlux::Kakshya::VEC4_F32.