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

◆ set_vertex_stride()

void MayaFlux::Nodes::GpuSync::GeometryWriterNode::set_vertex_stride ( size_t  stride)

Set vertex stride (bytes per vertex)

Parameters
strideStride in bytes

Must be called before filling buffer. Common values:

  • 12 (vec3 positions only)
  • 24 (vec3 positions + vec3 colors)
  • 32 (vec3 positions + vec3 normals + vec2 texcoords)

Definition at line 129 of file GeometryWriterNode.cpp.

130{
131 m_vertex_stride = stride;
133}
size_t m_vertex_stride
Bytes per vertex (stride for vertex buffer binding)
bool m_needs_layout_update
Flag indicating if layout needs update.

References m_needs_layout_update, and m_vertex_stride.

Referenced by MayaFlux::Nodes::GpuSync::PointCollectionNode::PointCollectionNode(), MayaFlux::Nodes::GpuSync::PointCollectionNode::PointCollectionNode(), and MayaFlux::Nodes::GpuSync::PointNode::PointNode().

+ Here is the caller graph for this function: