@@ -18,6 +18,7 @@ extern "C" {
18
18
19
19
#define HALIDE_RUNTIME_OPENGLCOMPUTE
20
20
21
+ HALIDE_ATTRIBUTE_DEPRECATED ("OpenGLCompute is deprecated in Halide 16 and will be removed in Halide 17." )
21
22
extern const struct halide_device_interface_t * halide_openglcompute_device_interface ();
22
23
23
24
/** These are forward declared here to allow clients to override the
@@ -27,6 +28,7 @@ extern const struct halide_device_interface_t *halide_openglcompute_device_inter
27
28
/** This function sets up OpenGL context, loads relevant GL functions, then
28
29
* compiles src OpenGL compute shader into OpenGL program and stores it for future use.
29
30
*/
31
+ HALIDE_ATTRIBUTE_DEPRECATED ("OpenGLCompute is deprecated in Halide 16 and will be removed in Halide 17." )
30
32
extern int halide_openglcompute_initialize_kernels (void * user_context , void * * state_ptr ,
31
33
const char * src , int size );
32
34
@@ -36,6 +38,7 @@ extern int halide_openglcompute_initialize_kernels(void *user_context, void **st
36
38
* This function doesn't wait for the completion of the shader, but it sets memory
37
39
* barrier which forces successive retrieval of output data to wait until shader is done.
38
40
*/
41
+ HALIDE_ATTRIBUTE_DEPRECATED ("OpenGLCompute is deprecated in Halide 16 and will be removed in Halide 17." )
39
42
extern int halide_openglcompute_run (void * user_context ,
40
43
void * state_ptr ,
41
44
const char * entry_name ,
@@ -46,6 +49,7 @@ extern int halide_openglcompute_run(void *user_context,
46
49
void * args [],
47
50
int8_t is_buffer []);
48
51
52
+ HALIDE_ATTRIBUTE_DEPRECATED ("OpenGLCompute is deprecated in Halide 16 and will be removed in Halide 17." )
49
53
extern void halide_openglcompute_finalize_kernels (void * user_context , void * state_ptr );
50
54
// @}
51
55
@@ -54,13 +58,15 @@ extern void halide_openglcompute_finalize_kernels(void *user_context, void *stat
54
58
* You may have to implement this yourself. Halide only provides implementations
55
59
* for some platforms."
56
60
*/
61
+ HALIDE_ATTRIBUTE_DEPRECATED ("OpenGLCompute is deprecated in Halide 16 and will be removed in Halide 17." )
57
62
extern void * halide_opengl_get_proc_address (void * user_context , const char * name );
58
63
59
64
/** This function creates an OpenGL context for use by the OpenGL backend.
60
65
*
61
66
* You may have to implement this yourself as well. Halide only provides
62
67
* implementations for some platforms."
63
68
*/
69
+ HALIDE_ATTRIBUTE_DEPRECATED ("OpenGLCompute is deprecated in Halide 16 and will be removed in Halide 17." )
64
70
extern int halide_opengl_create_context (void * user_context );
65
71
66
72
#ifdef __cplusplus
0 commit comments