Remove package Orka.Rendering.Vertex_Formats. Defining input layouts with VAOs provide no better performance than programmatic vertex pulling on AMD and recent Nvidia GPUs. Only on Intel they provide slightly better performance when the rendering is bounded by the vertex shader.
With VAOs, there are 3 things that need to match each other:
The vertex data itself
The vertex format of the VAO
The attributes in the vertex shader
Without VAOs, only the attributes need to be pulled correctly from the vertex data .
Because the core profile of OpenGL always requires a VAO to be bound, create and bind 1 VAO after making the context current.
Remove package
Orka.Rendering.Vertex_Formats
. Defining input layouts with VAOs provide no better performance than programmatic vertex pulling on AMD and recent Nvidia GPUs. Only on Intel they provide slightly better performance when the rendering is bounded by the vertex shader.With VAOs, there are 3 things that need to match each other:
Without VAOs, only the attributes need to be pulled correctly from the vertex data .
Because the core profile of OpenGL always requires a VAO to be bound, create and bind 1 VAO after making the context current.