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

◆ bind_shared_descriptor()

void MayaFlux::Yantra::GpuResourceManager::bind_shared_descriptor ( const std::string &  key,
uint32_t  set,
size_t  binding_index,
const GpuBufferBinding &  spec 
)

Definition at line 470 of file GpuResourceManager.cpp.

471{
472 auto& unit = unit_for(key);
473 auto& foundry = Portal::Graphics::get_shader_foundry();
474 auto& slot = m_shared->slots.at({ set, binding_index });
475
476 foundry.update_descriptor_buffer(
477 unit.descriptor_set_ids[spec.set],
478 spec.binding,
479 vk::DescriptorType::eStorageBuffer,
480 slot.buffer, 0, slot.allocated_bytes);
481}
std::unique_ptr< SharedBuffers > m_shared
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(), m_shared, MayaFlux::Portal::Graphics::GpuBufferBinding::set, and unit_for().

+ Here is the call graph for this function: