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

◆ write_lattice_word3()

void MayaFlux::Buffers::VolumeFieldProcessor::write_lattice_word3 ( uint32_t  value)
protected

Write word three of the shared prefix.

Parameters
valueSubclass-defined word, typically a mode or parity flag.

Definition at line 169 of file VolumeFieldProcessor.cpp.

170{
171 auto& data = get_push_constant_data();
172 if (data.size() < k_prefix_size) {
173 return;
174 }
175
176 std::memcpy(data.data() + k_word3_offset, &value, sizeof(uint32_t));
177}
float value
const std::vector< uint8_t > & get_push_constant_data() const
Get current push constant data.

References MayaFlux::Buffers::ShaderProcessor::get_push_constant_data(), and value.

Referenced by MayaFlux::Buffers::DiffuseProcessor::on_iteration(), and MayaFlux::Buffers::PressureProcessor::on_iteration().

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