compiler: move pointers to the start of shader_info
This will allow us to easily skip them when writting the struct to disk cache. Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
@@ -32,14 +32,14 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef struct shader_info {
|
typedef struct shader_info {
|
||||||
/** The shader stage, such as MESA_SHADER_VERTEX. */
|
|
||||||
gl_shader_stage stage;
|
|
||||||
|
|
||||||
const char *name;
|
const char *name;
|
||||||
|
|
||||||
/* Descriptive name provided by the client; may be NULL */
|
/* Descriptive name provided by the client; may be NULL */
|
||||||
const char *label;
|
const char *label;
|
||||||
|
|
||||||
|
/** The shader stage, such as MESA_SHADER_VERTEX. */
|
||||||
|
gl_shader_stage stage;
|
||||||
|
|
||||||
/* Number of textures used by this shader */
|
/* Number of textures used by this shader */
|
||||||
unsigned num_textures;
|
unsigned num_textures;
|
||||||
/* Number of uniform buffers used by this shader */
|
/* Number of uniform buffers used by this shader */
|
||||||
|
Reference in New Issue
Block a user