|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API GpuBlockLayout MayaFlux::Kakshya::gpu_block_layout | ( | std::span< const GpuDataFormat > | fields | ) |
Lay out fields in declaration order under std430 rules.
Each offset is the running end rounded up to the field's alignment, and the size is the end rounded up to the widest alignment, never less than four. This is the layout Vulkan applies to push constant blocks, which the GLSL path leaves to the compiler and the SPIR-V path must state itself.
| fields | Field formats in declaration order. |
Definition at line 88 of file GpuDataFormat.cpp.
References gpu_data_format_align(), gpu_data_format_bytes(), MayaFlux::Kakshya::GpuBlockLayout::offsets, and MayaFlux::Kakshya::GpuBlockLayout::size.
Referenced by MayaFlux::Portal::Graphics::push_constant_layout().
Here is the call graph for this function:
Here is the caller graph for this function: