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

◆ write_field_descriptor()

void MayaFlux::Buffers::VolumeSurfaceProcessor::write_field_descriptor ( )
private

Issue the direct ShaderFoundry descriptor write for the field read slot.

The grid buffer is a real VKBuffer and binds through the normal bind_buffer path.

Definition at line 87 of file VolumeSurfaceProcessor.cpp.

88{
89 if (!m_volume || m_descriptor_set_ids.empty()) {
90 return;
91 }
92
94 m_descriptor_set_ids[0], 0, vk::DescriptorType::eStorageBuffer,
95 m_volume->read_handle(m_field_name), 0,
96 m_volume->get_field_bytes(m_field_name));
97}
std::vector< Portal::Graphics::DescriptorSetID > m_descriptor_set_ids
std::shared_ptr< VolumeGridBuffer > m_volume
The attached volume, cached for the descriptor write.
void update_descriptor_buffer(DescriptorSetID descriptor_set_id, uint32_t binding, vk::DescriptorType type, vk::Buffer buffer, size_t offset, size_t size)
Update descriptor set with buffer binding.
MAYAFLUX_API ShaderFoundry & get_shader_foundry()
Get the global shader compiler instance.

References MayaFlux::Portal::Graphics::get_shader_foundry(), MayaFlux::Buffers::ShaderProcessor::m_descriptor_set_ids, m_field_name, m_volume, and MayaFlux::Portal::Graphics::ShaderFoundry::update_descriptor_buffer().

Referenced by on_descriptors_created(), and processing_function().

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