|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
|
private |
Size the push constant block to at least GridExtent and write the attached grid's dimensions into its leading 8 bytes.
Called from on_attach. A ShaderSpec-constructed processor keeps the size spec.push_constant_bytes gave it. Bytes past sizeof(GridExtent) are rule constants, written by RelaxationGridBuffer from GridConfig::Stage::constants, or per cycle by ShaderProcessor::feed at an explicit offset. set_push_constant_data_raw is unsuitable: it writes from offset 0 and resizes the block to the size passed.
Definition at line 73 of file RelaxationStepProcessor.cpp.
References MayaFlux::Buffers::ShaderProcessor::get_push_constant_data(), MayaFlux::Buffers::ShaderProcessor::m_config, m_grid, MayaFlux::Buffers::ShaderConfig::push_constant_size, MayaFlux::Buffers::ShaderProcessor::set_push_constant_size(), and MayaFlux::Buffers::RelaxationStepProcessor::GridExtent::width.
Referenced by on_attach().
Here is the call graph for this function:
Here is the caller graph for this function: