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

◆ prepare_output_image()

void MayaFlux::Yantra::TextureExecutionContext::prepare_output_image ( uint32_t  width,
uint32_t  height 
)
inlineprotected

Creates the output storage image and stages it at binding 0.

Must be called by subclasses inside on_before_gpu_dispatch() after dimensions are known, and before the base dispatch runs.

Parameters
widthOutput image width in pixels.
heightOutput image height in pixels.

Definition at line 108 of file TextureExecutionContext.hpp.

109 {
110 m_width = width;
111 m_height = height;
114 stage_image_storage(0, std::move(out));
115 }
uint32_t width
std::shared_ptr< Core::VKImage > create_storage_image(uint32_t width, uint32_t height, ImageFormat format=ImageFormat::RGBA8)
Create a storage image (compute shader read/write)
void stage_image_storage(size_t binding_index, std::shared_ptr< Core::VKImage > image)
Register a VKImage for an IMAGE_STORAGE binding.

References width.