mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-01 08:20:36 +00:00
c6e19f0384
... and use it for a naive color node implementation using both so I can test it actually works.
42 lines
2.2 KiB
C
42 lines
2.2 KiB
C
#pragma once
|
|
|
|
#include "gskgputypesprivate.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
typedef struct _GskGpuBufferWriter GskGpuBufferWriter;
|
|
|
|
struct _GskGpuBufferWriter
|
|
{
|
|
gpointer user_data;
|
|
void (* ensure_size) (GskGpuBufferWriter *self,
|
|
gsize size);
|
|
gsize (* finish) (GskGpuBufferWriter *self,
|
|
gboolean commit);
|
|
|
|
guchar *data;
|
|
gsize size;
|
|
gsize allocated;
|
|
};
|
|
|
|
gsize gsk_gpu_buffer_writer_commit (GskGpuBufferWriter *self);
|
|
void gsk_gpu_buffer_writer_abort (GskGpuBufferWriter *self);
|
|
|
|
void gsk_gpu_buffer_writer_ensure_size (GskGpuBufferWriter *self,
|
|
gsize size);
|
|
void gsk_gpu_buffer_writer_append (GskGpuBufferWriter *self,
|
|
gsize align,
|
|
const guchar *data,
|
|
gsize size);
|
|
|
|
void gsk_gpu_buffer_writer_append_float (GskGpuBufferWriter *self,
|
|
float f);
|
|
void gsk_gpu_buffer_writer_append_int (GskGpuBufferWriter *self,
|
|
gint32 i);
|
|
void gsk_gpu_buffer_writer_append_uint (GskGpuBufferWriter *self,
|
|
guint32 u);
|
|
|
|
|
|
|
|
G_END_DECLS
|