mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-09 10:20:07 +00:00
b154c9caf4
Instead of using glBuffer(Sub)Data() every time we set new globals, fill a single buffer with all the globals and use glBindBufferRange() on that buffer to set the current globals.
18 lines
743 B
C
18 lines
743 B
C
#pragma once
|
|
|
|
#include "gskgpuframeprivate.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define GSK_TYPE_GL_FRAME (gsk_gl_frame_get_type ())
|
|
|
|
G_DECLARE_FINAL_TYPE (GskGLFrame, gsk_gl_frame, GSK, GL_FRAME, GskGpuFrame)
|
|
|
|
void gsk_gl_frame_use_program (GskGLFrame *self,
|
|
const GskGpuShaderOpClass *op_class,
|
|
GskGpuShaderFlags flags,
|
|
GskGpuColorStates color_states,
|
|
guint32 variation);
|
|
|
|
G_END_DECLS
|