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

◆ bind_descriptor()

void MayaFlux::Yantra::GpuResourceManager::bind_descriptor ( const std::string &  key,
size_t  index,
const GpuBufferBinding &  spec 
)

Definition at line 373 of file GpuResourceManager.cpp.

374{
375 auto& unit = unit_for(key);
376 auto& foundry = Portal::Graphics::get_shader_foundry();
377 auto& vk_slot = unit.impl->buffers[index];
378
379 foundry.update_descriptor_buffer(
380 unit.descriptor_set_ids[spec.set],
381 spec.binding,
382 vk::DescriptorType::eStorageBuffer,
383 vk_slot.buffer, 0, vk_slot.allocated_bytes);
384}
uint32_t index
Definition VKDevice.cpp:122
PipelineUnit & unit_for(const std::string &key)
MAYAFLUX_API ShaderFoundry & get_shader_foundry()
Get the global shader compiler instance.

References MayaFlux::Portal::Graphics::GpuBufferBinding::binding, MayaFlux::Portal::Graphics::get_shader_foundry(), index, MayaFlux::Portal::Graphics::GpuBufferBinding::set, and unit_for().

+ Here is the call graph for this function: