Voxel
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Typedefs
Enumerations
Enumerator
Macros
Pages
color.cpp
Go to the documentation of this file.
1
/**
2
\file
3
\brief Contains Color and OpenCL::ImageFormat methods.
4
*/
5
6
7
8
9
#include "
settings.h
"
10
11
12
13
14
#if ( SETTING_OPENCL != 0 )
15
16
17
18
19
#include "
color.h
"
20
#include "
opencl_converter.h
"
21
22
#include <CL/cl.h>
23
24
25
26
27
namespace
OpenCL {
28
29
30
31
32
/*==============================================================================
33
OpenCL::ImageFormat static members
34
==============================================================================*/
35
36
37
template
<>
38
cl_image_format
const
ImageFormat< COLOR_FORMAT_RGBA_8888 >::format
= { CL_RGBA, CL_UNORM_INT8 };
39
40
template
<>
41
cl_image_format
const
ImageFormat< COLOR_FORMAT_RGB_565 >::format
= { CL_RGB, CL_UNORM_SHORT_565 };
42
43
44
45
46
}
// namespace OpenCL
47
48
49
50
51
#endif // SETTING_OPENCL
Generated on Thu Jun 20 2013 11:05:27 for Voxel by
1.8.1.2