MayaFlux 0.5.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 378 of file GpuResourceManager.cpp.

379{
380 auto& unit = unit_for(key);
381 auto& foundry = Portal::Graphics::get_shader_foundry();
382 auto& slot = m_shared->slots.at({ set, binding_index });
383
384 foundry.update_descriptor_buffer(
385 unit.descriptor_set_ids[spec.set],
386 spec.binding,
387 vk::DescriptorType::eStorageBuffer,
388 slot.buffer, 0, slot.allocated_bytes);
389}
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().

Referenced by MayaFlux::Yantra::GpuDispatchCore::bind_all_descriptors().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: