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

338{
339 auto& unit = unit_for(key);
340 auto& foundry = Portal::Graphics::get_shader_foundry();
341 auto& vk_slot = unit.impl->buffers[index];
342
343 foundry.update_descriptor_buffer(
344 unit.descriptor_set_ids[spec.set],
345 spec.binding,
346 vk::DescriptorType::eStorageBuffer,
347 vk_slot.buffer, 0, vk_slot.allocated_bytes);
348}
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(), 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: