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 269 of file GpuResourceManager.cpp.

270{
271 auto& foundry = Portal::Graphics::get_shader_foundry();
272 auto& vk_slot = m_impl->buffers[index];
273
274 foundry.update_descriptor_buffer(
275 m_descriptor_set_ids[spec.set],
276 spec.binding,
277 vk::DescriptorType::eStorageBuffer,
278 vk_slot.buffer, 0, vk_slot.allocated_bytes);
279}
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(), MayaFlux::Yantra::GpuDispatchCore::dispatch_core_async(), and MayaFlux::Yantra::GpuDispatchCore::dispatch_core_chained().

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