3#include <NDEVR/Buffer.h>
4#include <QOpenGLContext>
5#include <QOffscreenSurface>
6#include <QSurfaceFormat>
8#include <QOpenGLFunctions_4_3_Core>
9#include <QOpenGLShaderProgram>
14 class GLES_INTERFACE_API GLComputeShader
25 void setQtGL(QOpenGLFunctions_4_3_Core* gl);
30 void ensureSSBO(GLuint&
id, GLsizeiptr bytes, GLenum usage);
35 void readBytes(GLuint buf,
void* dst, GLsizeiptr bytes);
39 static void ResetAtomicAll(QOpenGLFunctions_4_3_Core* gl, GLuint buf);
44 static inline uint04 CeilDiv(uint04 a, uint04 b) {
return (a + b - 1) / b; }
51 static void ReadBytes(QOpenGLFunctions_4_3_Core* gl, GLenum target, GLuint buf,
void* dst, GLsizeiptr bytes);
53 QOpenGLContext* m_ctx =
nullptr;
54 QOpenGLFunctions_4_3_Core* m_gl =
nullptr;
55 QOffscreenSurface* m_surf =
nullptr;
The primary namespace for the NDEVR SDK.
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...