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

◆ set_vertex_layout()

void MayaFlux::Buffers::VKBuffer::set_vertex_layout ( const Kakshya::VertexLayout layout)

Set vertex layout for this buffer.

Required before using buffer with graphics rendering. Describes how to interpret buffer data as vertices.

Parameters
layoutVertexLayout describing vertex structure

Definition at line 368 of file VKBuffer.cpp.

369{
370 auto computed_layout = layout;
371 computed_layout.compute_stride();
372 m_vertex_layout = computed_layout;
373}
std::optional< Kakshya::VertexLayout > m_vertex_layout
Definition VKBuffer.hpp:437

References MayaFlux::Kakshya::VertexLayout::compute_stride(), and m_vertex_layout.

Referenced by MayaFlux::Buffers::TextureBuffer::generate_default_quad().

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