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

◆ stage_input()

void MayaFlux::Yantra::TextureExecutionContext::stage_input ( const Kakshya::TextureContainer container,
size_t  binding_index,
uint32_t  layer = 0 
)
inline

Stage the input TextureContainer as a VKImage for the given binding.

Uploads pixel data to a new VKImage via TextureLoom and registers it as IMAGE_SAMPLED at binding_index. A default linear sampler from SamplerForge is used. Call from on_before_gpu_dispatch() in subclasses.

Parameters
containerSource TextureContainer. Must be non-null.
binding_indexBinding slot matching the IMAGE_SAMPLED declaration.

Definition at line 63 of file TextureExecutionContext.hpp.

64 {
65 auto img = container.to_image(layer);
67 stage_image_sampled(binding_index, std::move(img), sampler);
68 }
vk::Sampler get_default_linear()
Get a default linear sampler.
void stage_image_sampled(size_t binding_index, std::shared_ptr< Core::VKImage > image, vk::Sampler sampler)
Register a VKImage + sampler for an IMAGE_SAMPLED binding.

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

+ Here is the call graph for this function: