diff options
Diffstat (limited to 'video/out/opengl/ra_gl.h')
-rw-r--r-- | video/out/opengl/ra_gl.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/video/out/opengl/ra_gl.h b/video/out/opengl/ra_gl.h index 016ce13419..0d3828c978 100644 --- a/video/out/opengl/ra_gl.h +++ b/video/out/opengl/ra_gl.h @@ -28,9 +28,21 @@ struct ra_mapped_buffer_gl { GLsync fence; }; +// For ra_renderpass.priv +struct ra_renderpass_gl { + GLuint program; + // 1 entry for each ra_renderpass_params.inputs[] entry + GLint *uniform_loc; + int num_uniform_loc; // == ra_renderpass_params.num_inputs + struct gl_vao vao; + bool first_run; +}; + int ra_init_gl(struct ra *ra, GL *gl); struct ra_tex *ra_create_wrapped_texture(struct ra *ra, GLuint gl_texture, GLenum gl_target, GLint gl_iformat, GLenum gl_format, GLenum gl_type, int w, int h); struct ra_tex *ra_create_wrapped_fb(struct ra *ra, GLuint gl_fbo, int w, int h); + +GL *ra_gl_get(struct ra *ra); |