MayaFlux 0.4.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.

62{
64 m_tex_height = height;
66 m_tex_binding = std::move(binding);
67}
uint32_t width
Definition Decoder.cpp:59
Portal::Graphics::ImageFormat m_tex_format
std::string format(format_string< std::remove_cvref_t< Args >... > fmt_str, Args &&... args)
Definition Format.hpp:30

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