mesa: add tessellation shader init functions.
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
bb97cc66c1
commit
78d3054980
|
@ -285,6 +285,38 @@ _mesa_init_compute_program(struct gl_context *ctx,
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* Initialize a new tessellation control program object.
|
||||
*/
|
||||
struct gl_program *
|
||||
_mesa_init_tess_ctrl_program(struct gl_context *ctx,
|
||||
struct gl_tess_ctrl_program *prog,
|
||||
GLenum target, GLuint id)
|
||||
{
|
||||
if (prog) {
|
||||
init_program_struct(&prog->Base, target, id);
|
||||
return &prog->Base;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Initialize a new tessellation evaluation program object.
|
||||
*/
|
||||
struct gl_program *
|
||||
_mesa_init_tess_eval_program(struct gl_context *ctx,
|
||||
struct gl_tess_eval_program *prog,
|
||||
GLenum target, GLuint id)
|
||||
{
|
||||
if (prog) {
|
||||
init_program_struct(&prog->Base, target, id);
|
||||
return &prog->Base;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Initialize a new geometry program object.
|
||||
*/
|
||||
|
|
|
@ -78,6 +78,16 @@ _mesa_init_fragment_program(struct gl_context *ctx,
|
|||
struct gl_fragment_program *prog,
|
||||
GLenum target, GLuint id);
|
||||
|
||||
extern struct gl_program *
|
||||
_mesa_init_tess_ctrl_program(struct gl_context *ctx,
|
||||
struct gl_tess_ctrl_program *prog,
|
||||
GLenum target, GLuint id);
|
||||
|
||||
extern struct gl_program *
|
||||
_mesa_init_tess_eval_program(struct gl_context *ctx,
|
||||
struct gl_tess_eval_program *prog,
|
||||
GLenum target, GLuint id);
|
||||
|
||||
extern struct gl_program *
|
||||
_mesa_init_geometry_program(struct gl_context *ctx,
|
||||
struct gl_geometry_program *prog,
|
||||
|
|
Loading…
Reference in New Issue