mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 08:30:10 +01:00
mesa: move gl_vertex_format_user definition into glthread.h
glthread.h needs it and it can't include mtypes.h because mtypes.h includes it. Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20824>
This commit is contained in:
parent
c00db0dbc8
commit
02f1968696
2 changed files with 13 additions and 12 deletions
|
|
@ -62,6 +62,19 @@ struct gl_buffer_object;
|
|||
struct _mesa_HashTable;
|
||||
struct _glapi_table;
|
||||
|
||||
/* Used by both glthread and gl_context. */
|
||||
union gl_vertex_format_user {
|
||||
struct {
|
||||
GLenum16 Type; /**< datatype: GL_FLOAT, GL_INT, etc */
|
||||
bool Bgra; /**< true if GL_BGRA, else GL_RGBA */
|
||||
uint8_t Size:5; /**< components per element (1,2,3,4) */
|
||||
bool Normalized:1; /**< GL_ARB_vertex_program */
|
||||
bool Integer:1; /**< Integer-valued? */
|
||||
bool Doubles:1; /**< double values are not converted to floats */
|
||||
};
|
||||
uint32_t All;
|
||||
};
|
||||
|
||||
struct glthread_attrib_binding {
|
||||
struct gl_buffer_object *buffer; /**< where non-VBO data was uploaded */
|
||||
int offset; /**< offset to uploaded non-VBO data */
|
||||
|
|
|
|||
|
|
@ -319,18 +319,6 @@ struct gl_colorbuffer_attrib
|
|||
GLboolean sRGBEnabled; /**< Framebuffer sRGB blending/updating requested */
|
||||
};
|
||||
|
||||
union gl_vertex_format_user {
|
||||
struct {
|
||||
GLenum16 Type; /**< datatype: GL_FLOAT, GL_INT, etc */
|
||||
bool Bgra; /**< true if GL_BGRA, else GL_RGBA */
|
||||
GLubyte Size:5; /**< components per element (1,2,3,4) */
|
||||
GLubyte Normalized:1; /**< GL_ARB_vertex_program */
|
||||
GLubyte Integer:1; /**< Integer-valued? */
|
||||
GLubyte Doubles:1; /**< double values are not converted to floats */
|
||||
};
|
||||
uint32_t All;
|
||||
};
|
||||
|
||||
/**
|
||||
* Vertex format to describe a vertex element.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue