mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 06:21:14 +00:00
d900407a18
A variation is a #define/specialization constant that every shader can use to specialize itself as it sees fit. This commit adds the infrastrcture, future commits will add implementations.
20 lines
854 B
C
20 lines
854 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,
|
|
guint32 variation,
|
|
GskGpuShaderClip clip,
|
|
guint n_external_textures);
|
|
|
|
void gsk_gl_frame_bind_globals (GskGLFrame *self);
|
|
|
|
G_END_DECLS
|