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

◆ setup_pixel_target()

void MayaFlux::Buffers::DataWriteProcessor::setup_pixel_target ( uint32_t  width,
uint32_t  height,
Portal::Graphics::ImageFormat  format,
std::string  binding = "texSampler" 
)

Configure the pixel upload path for texture modalities.

Must be called before the first set_data() when the attached buffer has a texture modality and is not a TextureBuffer. For TextureBuffer targets, call this directly TextureBuffer::set_pixel_data().

Parameters
widthTexture width in texels.
heightTexture height in texels.
formatPixel format.
bindingDescriptor name to bind the VKImage to on the RenderProcessor.

Definition at line 57 of file DataWriteProcessor.cpp.

References height, m_tex_binding, m_tex_format, m_tex_height, m_tex_width, and width.