mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
1a85d569e3
This heaves over an inital chunk of code from the Vulkan renderer to execute shaders. The only shader that exists for now is a shader that draws a single texture. We use that to replace the blit op we were doing before.
21 lines
666 B
C
21 lines
666 B
C
#pragma once
|
|
|
|
#include "gskgpubufferprivate.h"
|
|
|
|
#include "gskgldeviceprivate.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define GSK_TYPE_GL_BUFFER (gsk_gl_buffer_get_type ())
|
|
|
|
G_DECLARE_FINAL_TYPE (GskGLBuffer, gsk_gl_buffer, GSK, GL_BUFFER, GskGpuBuffer)
|
|
|
|
GskGpuBuffer * gsk_gl_buffer_new (GLenum target,
|
|
gsize size,
|
|
GLenum access);
|
|
|
|
void gsk_gl_buffer_bind (GskGLBuffer *self);
|
|
|
|
G_END_DECLS
|
|
|