Commit 78c715fe by Philipp Adolf

Add Tables struct

parent ce81fdb6
......@@ -23,13 +23,19 @@ private:
QVector<Vertex> vertex_buffer;
};
struct Tables
{
QVector<GLuint> edge_indices;
QVector<GLuint> vertex_indices;
QVector<GLuint> vertex_offsets;
};
QOpenGLFunctions_4_3_Core *f;
QOpenGLShaderProgram *edgeShader;
QOpenGLShaderProgram *initComputeShaderProgram(QString &source);
void precomputeTables(Input input, QVector<GLuint> &edgeIndices_base,
QVector<GLuint> &vertexIndices, QVector<GLuint> &vertexIndicesOffsets);
void runShader(Input input, QVector<GLuint> &edgeIndices);
Tables precomputeTables(Input input);
void runShader(Input input, Tables &tables);
};
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment