mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 06:21:14 +00:00
1b38cbd410
This makes the (currently single) storage buffer handled by GskGpuDescriptors. A side effect is that we now have support for multiple buffers in place. We just have to use it. Mixed into this commit is a complete rework of the pattern writer. Instead of writing straight into the buffer (complete with repeatedly backtracking when we have to do offscreens), write into a temporary buffer and copy into the storage buffer on committing.
19 lines
746 B
C
19 lines
746 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,
|
|
GskGpuShaderClip clip,
|
|
guint n_external_textures);
|
|
|
|
void gsk_gl_frame_bind_globals (GskGLFrame *self);
|
|
|
|
G_END_DECLS
|