Commit 78c715fe by Philipp Adolf

Add Tables struct

parent ce81fdb6
...@@ -23,13 +23,19 @@ private: ...@@ -23,13 +23,19 @@ private:
QVector<Vertex> vertex_buffer; QVector<Vertex> vertex_buffer;
}; };
struct Tables
{
QVector<GLuint> edge_indices;
QVector<GLuint> vertex_indices;
QVector<GLuint> vertex_offsets;
};
QOpenGLFunctions_4_3_Core *f; QOpenGLFunctions_4_3_Core *f;
QOpenGLShaderProgram *edgeShader; QOpenGLShaderProgram *edgeShader;
QOpenGLShaderProgram *initComputeShaderProgram(QString &source); QOpenGLShaderProgram *initComputeShaderProgram(QString &source);
void precomputeTables(Input input, QVector<GLuint> &edgeIndices_base, Tables precomputeTables(Input input);
QVector<GLuint> &vertexIndices, QVector<GLuint> &vertexIndicesOffsets); void runShader(Input input, Tables &tables);
void runShader(Input input, QVector<GLuint> &edgeIndices);
}; };
#endif #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