1 #ifndef NEXUS3D_GFX_GL_H_
2 #define NEXUS3D_GFX_GL_H_
13 #define MAX_VAO_ATTR 32
15 struct nex_attr_desc {
16 enum nex_vattr_type type;
17 unsigned int size, bufid;
22 const struct nex_buffer *buf[MAX_VAO_BUF];
23 const struct nex_buffer *ibuf;
24 struct nex_attr_desc attr[MAX_VAO_ATTR];
25 unsigned int vcount; /* computed by buf size / attr size */
28 #define MAX_SDR_CONST 64
32 enum nex_sdr_type type;
34 int src, compiled, nref;
36 unsigned int cidx[MAX_SDR_CONST];
37 unsigned int cval[MAX_SDR_CONST];
38 unsigned int num_const;
41 #define MAX_SDRPROG_SDR 8
46 nex_shader *sdr[MAX_SDRPROG_SDR];
54 enum nex_tex_type type;
55 enum nex_pixfmt pixfmt;
58 #endif /* NEXUS3D_GFX_GL_H_ */