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

◆ write_state_descriptors()

void MayaFlux::Buffers::RelaxationEmitProcessor::write_state_descriptors ( const std::shared_ptr< RelaxationGridBuffer > &  grid)
private

Point cell_state at the grid's front generation and vertices at the grid's own vertex storage.

Parameters
gridThe attached RelaxationGridBuffer.

Definition at line 36 of file RelaxationEmitProcessor.cpp.

37{
38 if (m_descriptor_set_ids.empty()) {
39 return;
40 }
41
43 auto& resources = grid->get_buffer_resources();
44
45 foundry.update_descriptor_buffer(
46 m_descriptor_set_ids[0], 0, vk::DescriptorType::eStorageBuffer,
47 resources.back_buffers[grid->front_index()].buffer, 0, grid->get_state_bytes());
48
49 foundry.update_descriptor_buffer(
50 m_descriptor_set_ids[0], 1, vk::DescriptorType::eStorageBuffer,
51 grid->get_buffer(), 0, grid->get_size_bytes());
52}
std::vector< Portal::Graphics::DescriptorSetID > m_descriptor_set_ids
MAYAFLUX_API ShaderFoundry & get_shader_foundry()
Get the global shader compiler instance.

References MayaFlux::Portal::Graphics::get_shader_foundry(), and MayaFlux::Buffers::ShaderProcessor::m_descriptor_set_ids.

Referenced by on_descriptors_created(), and processing_function().

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