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

◆ bind_descriptor()

void MayaFlux::Yantra::GpuResourceManager::bind_descriptor ( size_t  index,
const GpuBufferBinding spec 
)

Definition at line 235 of file GpuResourceManager.cpp.

236{
237 auto& foundry = Portal::Graphics::get_shader_foundry();
238 auto& vk_slot = m_impl->buffers[index];
239
240 foundry.update_descriptor_buffer(
241 m_descriptor_set_ids[spec.set],
242 spec.binding,
243 vk::DescriptorType::eStorageBuffer,
244 vk_slot.buffer, 0, vk_slot.allocated_bytes);
245}
std::vector< Portal::Graphics::DescriptorSetID > m_descriptor_set_ids
std::unique_ptr< GpuResourceManagerImpl > m_impl
MAYAFLUX_API ShaderFoundry & get_shader_foundry()
Get the global shader compiler instance.

References MayaFlux::Yantra::GpuBufferBinding::binding, MayaFlux::Portal::Graphics::get_shader_foundry(), m_descriptor_set_ids, m_impl, and MayaFlux::Yantra::GpuBufferBinding::set.

Referenced by MayaFlux::Yantra::GpuDispatchCore::dispatch_core(), and MayaFlux::Yantra::GpuDispatchCore::dispatch_core_chained().

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