cogl: Make BufferBindTarget public

It would be used in the next commit to generate a gtype and
be used for Buffer::default-target

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3357>
This commit is contained in:
Bilal Elmoussaoui 2024-01-02 14:09:09 +01:00 committed by Marge Bot
parent 63a558950b
commit 3280fee8bc
2 changed files with 13 additions and 10 deletions

View File

@ -50,16 +50,6 @@ typedef enum _CoglBufferFlags
COGL_BUFFER_FLAG_MAPPED_FALLBACK = 1UL << 2
} CoglBufferFlags;
typedef enum
{
COGL_BUFFER_BIND_TARGET_PIXEL_PACK,
COGL_BUFFER_BIND_TARGET_PIXEL_UNPACK,
COGL_BUFFER_BIND_TARGET_ATTRIBUTE_BUFFER,
COGL_BUFFER_BIND_TARGET_INDEX_BUFFER,
COGL_BUFFER_BIND_TARGET_COUNT
} CoglBufferBindTarget;
struct _CoglBuffer
{
GObject parent_instance;

View File

@ -185,6 +185,19 @@ typedef enum /*< prefix=COGL_BUFFER_MAP_HINT >*/
COGL_BUFFER_MAP_HINT_DISCARD_RANGE = 1 << 1
} CoglBufferMapHint;
/**
* CoglBufferBindTarget:
*/
typedef enum /*< prefix=COGL_BUFFER_BIND_TARGET >*/
{
COGL_BUFFER_BIND_TARGET_PIXEL_PACK,
COGL_BUFFER_BIND_TARGET_PIXEL_UNPACK,
COGL_BUFFER_BIND_TARGET_ATTRIBUTE_BUFFER,
COGL_BUFFER_BIND_TARGET_INDEX_BUFFER,
COGL_BUFFER_BIND_TARGET_COUNT
} CoglBufferBindTarget;
/**
* cogl_buffer_map:
* @buffer: a buffer object