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

◆ make_bindings()

std::vector< VolumeFieldProcessor::FieldBinding > MayaFlux::Buffers::SolenoidalProcessor::make_bindings ( const std::string &  pressure_field,
const std::string &  velocity_field 
)
staticprivate

Build the binding table for the two field names.

Parameters
pressure_fieldField differentiated.
velocity_fieldField corrected, bound in both slots.
Returns
Table binding pressure read and both velocity slots.

Definition at line 5 of file SolenoidalProcessor.cpp.

7{
8 return {
9 { .name = "pressure_in", .binding = 0, .field = pressure_field, .access = FieldAccess::READ },
10 { .name = "velocity_in", .binding = 1, .field = velocity_field, .access = FieldAccess::READ },
11 { .name = "velocity_out", .binding = 2, .field = velocity_field, .access = FieldAccess::WRITE },
12 };
13}
@ READ
Resolves to VolumeGridBuffer::read_handle.
@ WRITE
Resolves to VolumeGridBuffer::write_handle.

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