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

◆ make_bindings()

std::vector< VolumeFieldProcessor::FieldBinding > MayaFlux::Buffers::DiffuseProcessor::make_bindings ( const std::string &  target_field,
const std::string &  scratch_field 
)
staticprivate

Build the binding table for the two field names.

Parameters
target_fieldField diffused, bound in both slots.
scratch_fieldField holding pre-diffusion values.
Returns
Table binding the scratch and both target slots.

Definition at line 6 of file DiffuseProcessor.cpp.

8{
9 return {
10 { .name = "source", .binding = 0, .field = scratch_field, .access = FieldAccess::WRITE },
11 { .name = "target_a", .binding = 1, .field = target_field, .access = FieldAccess::READ },
12 { .name = "target_b", .binding = 2, .field = target_field, .access = FieldAccess::WRITE },
13 };
14}
@ READ
Resolves to VolumeGridBuffer::read_handle.
@ WRITE
Resolves to VolumeGridBuffer::write_handle.

References MayaFlux::Buffers::VolumeFieldProcessor::READ, and MayaFlux::Buffers::VolumeFieldProcessor::WRITE.