aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/compute/skc/skc_create_cl.h
blob: 0ab0fe0cb96dcdbd6c2dae5f4c6a08df4547437b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/*
 * Copyright 2017 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can
 * be found in the LICENSE file.
 *
 */

#ifndef SKC_ONCE_SKC_CREATE_CL
#define SKC_ONCE_SKC_CREATE_CL

//
//
//

#ifdef __APPLE__
#include "OpenCL/opencl.h"
#else
#include "CL/opencl.h"
#endif

//
//
//

#include "skc.h"

//
// CONTEXT CREATION
//

skc_err
skc_context_create_cl(skc_context_t * context,
                      cl_context      context_cl,
                      cl_device_id    device_id_cl);

//
// FIXME -- SPECIALIZE SURFACE RENDER
//

#if 0

//
// SURFACE RENDER
//

typedef void (*skc_surface_render_pfn_notify)(skc_surface_t     surface,
                                              skc_styling_t     styling,
                                              skc_composition_t composition,
                                              void            * data);
skc_err
skc_surface_render(skc_surface_t                 surface,
                   uint32_t                const clip[4],
                   skc_styling_t                 styling,
                   skc_composition_t             composition,
                   skc_surface_render_pfn_notify notify,
                   void                        * data,
                   void                        * fb); // FIXME FIXME

#endif

//
//
//

#endif

//
//
//