Allan MacKinnon | c110e79 | 2018-06-21 09:09:56 -0700 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright 2017 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can |
| 5 | * be found in the LICENSE file. |
| 6 | * |
| 7 | */ |
| 8 | |
| 9 | #ifndef SKC_ONCE_SKC_CREATE_CL |
| 10 | #define SKC_ONCE_SKC_CREATE_CL |
| 11 | |
| 12 | // |
| 13 | // |
| 14 | // |
| 15 | |
| 16 | #ifdef __APPLE__ |
| 17 | #include "OpenCL/opencl.h" |
| 18 | #else |
| 19 | #include "CL/opencl.h" |
| 20 | #endif |
| 21 | |
| 22 | // |
| 23 | // |
| 24 | // |
| 25 | |
| 26 | #include "skc.h" |
| 27 | |
| 28 | // |
| 29 | // CONTEXT CREATION |
| 30 | // |
| 31 | |
| 32 | skc_err |
| 33 | skc_context_create_cl(skc_context_t * context, |
| 34 | cl_context context_cl, |
| 35 | cl_device_id device_id_cl); |
| 36 | |
| 37 | // |
| 38 | // FIXME -- SPECIALIZE SURFACE RENDER |
| 39 | // |
| 40 | |
| 41 | #if 0 |
| 42 | |
| 43 | // |
| 44 | // SURFACE RENDER |
| 45 | // |
| 46 | |
| 47 | typedef void (*skc_surface_render_pfn_notify)(skc_surface_t surface, |
| 48 | skc_styling_t styling, |
| 49 | skc_composition_t composition, |
| 50 | void * data); |
| 51 | skc_err |
| 52 | skc_surface_render(skc_surface_t surface, |
| 53 | uint32_t const clip[4], |
| 54 | skc_styling_t styling, |
| 55 | skc_composition_t composition, |
| 56 | skc_surface_render_pfn_notify notify, |
| 57 | void * data, |
| 58 | void * fb); // FIXME FIXME |
| 59 | |
| 60 | #endif |
| 61 | |
| 62 | // |
| 63 | // |
| 64 | // |
| 65 | |
| 66 | #endif |
| 67 | |
| 68 | // |
| 69 | // |
| 70 | // |