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

◆ set_texture()

void MayaFlux::Buffers::UVFieldProcessor::set_texture ( std::shared_ptr< Core::VKImage image,
const Portal::Graphics::SamplerConfig config = {} 
)

Bind a texture to sample colour from at computed UV coordinates.

Parameters
imageSource VKImage (must be in eShaderReadOnlyOptimal layout)
configSampler configuration (default: linear, repeat)

When set, the shader also writes sampled colour to vertex colour (offset 12). When not set (or called with nullptr), only UV is written.

Definition at line 54 of file UVFieldProcessor.cpp.

References image, MayaFlux::Buffers::ShaderProcessor::m_needs_descriptor_rebuild, m_pc, m_sampler, m_sampler_config, m_texture, and MayaFlux::Buffers::UVFieldProcessor::PushConstants::write_colour.