2023-08-21 00:18:37 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "gskgpubufferprivate.h"
|
|
|
|
|
|
|
|
#include "gskgldeviceprivate.h"
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
#define GSK_TYPE_GL_BUFFER (gsk_gl_buffer_get_type ())
|
2024-03-16 19:19:38 +00:00
|
|
|
#define GSK_TYPE_GL_MAPPED_BUFFER (gsk_gl_mapped_buffer_get_type ())
|
|
|
|
#define GSK_TYPE_GL_COPIED_BUFFER (gsk_gl_copied_buffer_get_type ())
|
2023-08-21 00:18:37 +00:00
|
|
|
|
|
|
|
G_DECLARE_FINAL_TYPE (GskGLBuffer, gsk_gl_buffer, GSK, GL_BUFFER, GskGpuBuffer)
|
2024-03-16 19:19:38 +00:00
|
|
|
G_DECLARE_FINAL_TYPE (GskGLMappedBuffer, gsk_gl_mapped_buffer, GSK, GL_MAPPED_BUFFER, GskGLBuffer)
|
|
|
|
G_DECLARE_FINAL_TYPE (GskGLCopiedBuffer, gsk_gl_copied_buffer, GSK, GL_COPIED_BUFFER, GskGLBuffer)
|
2023-08-21 00:18:37 +00:00
|
|
|
|
2024-03-16 19:19:38 +00:00
|
|
|
GskGpuBuffer * gsk_gl_mapped_buffer_new (GLenum target,
|
|
|
|
gsize size);
|
|
|
|
GskGpuBuffer * gsk_gl_copied_buffer_new (GLenum target,
|
2024-03-16 18:46:37 +00:00
|
|
|
gsize size);
|
2023-08-21 00:18:37 +00:00
|
|
|
|
|
|
|
void gsk_gl_buffer_bind (GskGLBuffer *self);
|
2023-08-30 19:57:41 +00:00
|
|
|
void gsk_gl_buffer_bind_base (GskGLBuffer *self,
|
|
|
|
GLuint index);
|
2023-08-21 00:18:37 +00:00
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|