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

◆ validate_layout()

bool MayaFlux::Kakshya::MeshInsertion::validate_layout ( const VertexLayout incoming) const
private

Definition at line 36 of file MeshInsertion.cpp.

37{
38 if (incoming.stride_bytes != m_layout.stride_bytes) {
40 "MeshInsertion: submesh stride {} does not match established stride {}; "
41 "batch skipped",
42 incoming.stride_bytes, m_layout.stride_bytes);
43 return false;
44 }
45 if (incoming.attributes.size() != m_layout.attributes.size()) {
47 "MeshInsertion: submesh attribute count {} does not match established count {}; "
48 "batch skipped",
49 incoming.attributes.size(), m_layout.attributes.size());
50 return false;
51 }
52 return true;
53}
#define MF_ERROR(comp, ctx,...)
@ Runtime
General runtime operations (default fallback)
@ Kakshya
Containers[Signalsource, Stream, File], Regions, DataProcessors.
uint32_t stride_bytes
Total bytes per vertex (stride in Vulkan terms) e.g., 3 floats (position) + 3 floats (normal) = 24 by...
std::vector< VertexAttributeLayout > attributes
All attributes that make up one vertex Ordered by shader location (0, 1, 2, ...)

References MayaFlux::Kakshya::VertexLayout::attributes, MayaFlux::Journal::Kakshya, m_layout, MF_ERROR, MayaFlux::Journal::Runtime, and MayaFlux::Kakshya::VertexLayout::stride_bytes.

Referenced by insert_submesh().

+ Here is the caller graph for this function: