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

◆ stage_container()

void MayaFlux::Yantra::TextureExecutionContext::stage_container ( const Kakshya::TextureContainer container,
uint32_t  layer = 0,
vk::Sampler  sampler = nullptr 
)
inline

Stage a TextureContainer layer at the declared input image binding.

Convenience for callers that hold a container and want explicit control over layer and sampler rather than relying on Datum.container resolution. Always stages as IMAGE_SAMPLED regardless of the input slot's declared access mode.

Parameters
containerSource TextureContainer.
layerArray layer index (default 0).
samplerVulkan sampler. Defaults to linear when nullptr.

Definition at line 331 of file TextureExecutionContext.hpp.

335 {
336 auto& slot = input_slot();
337 auto img = container.to_image(layer);
338 auto s = sampler
339 ? sampler
342 slot.image = img;
343 m_pending_container = nullptr;
344 }
vk::Sampler get_default_linear()
Get a default linear sampler.
void stage_image_at(size_t binding_index, std::shared_ptr< Core::VKImage > image, GpuBufferBinding::ElementType kind, vk::Sampler sampler=nullptr)
Register a VKImage at an explicit binding index.
std::shared_ptr< Kakshya::TextureContainer > m_pending_container
ImageSlot & input_slot()
Find the declared input image slot.

References MayaFlux::Kakshya::TextureContainer::to_image().

+ Here is the call graph for this function: