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

◆ build()

ShaderSpec MayaFlux::Portal::Graphics::ShaderSpec::Assemble::build ( )
inline

Finalise and return the ShaderSpec.

Definition at line 460 of file ShaderSpec.hpp.

461 {
462 uint32_t pc_bytes = 0;
463 for (const auto& f : m_pc_fields)
464 pc_bytes += Kakshya::gpu_data_format_bytes(f.format);
465
466 return ShaderSpec {
467 .tmpl = m_tmpl,
468 .op = m_op,
469 .bindings = std::move(m_bindings),
470 .pc_fields = std::move(m_pc_fields),
471 .workgroup_size = m_workgroup,
472 .push_constant_bytes = pc_bytes,
473 .kernel = std::move(m_kernel),
474 };
475 }
std::vector< PushConstantField > m_pc_fields
@ Kakshya
Containers[Signalsource, Stream, File], Regions, DataProcessors.
size_t gpu_data_format_bytes(GpuDataFormat fmt) noexcept
Byte size of one element of a GpuDataFormat.
Definition NDData.cpp:9

References MayaFlux::Kakshya::gpu_data_format_bytes(), m_bindings, m_kernel, m_op, m_pc_fields, m_tmpl, m_workgroup, and MayaFlux::Portal::Graphics::ShaderSpec::tmpl.

Referenced by MayaFlux::Yantra::VisionGpuExecutor::config(), and MayaFlux::Yantra::VisionGpuExecutor::run().

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