|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Portal::Forma::Bridge::write | ( | const ElementRef & | ref, |
| const std::shared_ptr< Buffers::VKBuffer > & | target_buffer, | ||
| const std::string & | shader_path, | ||
| uint32_t | offset, | ||
| Kakshya::GpuDataFormat | format | ||
| ) |
Route element value to a push constant slot described by a GpuDataFormat.
When the element's own value type is exactly this format, the value is written as it is, so a vec3 or mat4 state keeps every component. Otherwise the element's float value is converted to the format with integers saturating, which needs a single component format.
| format | Layout written at the offset. |
Definition at line 127 of file Bridge.cpp.
References MayaFlux::Buffers::BufferManager::add_processor(), find_record(), format, MayaFlux::Buffers::GRAPHICS_BACKEND, MayaFlux::Journal::Init, m_buffer_manager, MF_ERROR, offset, and MayaFlux::Journal::Portal.
Here is the call graph for this function: