diff options
Diffstat (limited to 'boost/compute/image')
-rw-r--r-- | boost/compute/image/image1d.hpp | 8 | ||||
-rw-r--r-- | boost/compute/image/image2d.hpp | 8 | ||||
-rw-r--r-- | boost/compute/image/image3d.hpp | 8 | ||||
-rw-r--r-- | boost/compute/image/image_sampler.hpp | 2 |
4 files changed, 13 insertions, 13 deletions
diff --git a/boost/compute/image/image1d.hpp b/boost/compute/image/image1d.hpp index 2d71934ab4..0f146be089 100644 --- a/boost/compute/image/image1d.hpp +++ b/boost/compute/image/image1d.hpp @@ -50,7 +50,7 @@ public: cl_mem_flags flags = read_write, void *host_ptr = 0) { - #ifdef CL_VERSION_1_2 + #ifdef BOOST_COMPUTE_CL_VERSION_1_2 cl_image_desc desc; desc.image_type = CL_MEM_OBJECT_IMAGE1D; desc.image_width = image_width; @@ -61,7 +61,7 @@ public: desc.image_slice_pitch = 0; desc.num_mip_levels = 0; desc.num_samples = 0; - #ifdef CL_VERSION_2_0 + #ifdef BOOST_COMPUTE_CL_VERSION_2_0 desc.mem_object = 0; #else desc.buffer = 0; @@ -151,7 +151,7 @@ public: static std::vector<image_format> get_supported_formats(const context &context, cl_mem_flags flags = read_write) { - #ifdef CL_VERSION_1_2 + #ifdef BOOST_COMPUTE_CL_VERSION_1_2 return image_object::get_supported_formats(context, CL_MEM_OBJECT_IMAGE1D, flags); #else return std::vector<image_format>(); @@ -164,7 +164,7 @@ public: const context &context, cl_mem_flags flags = read_write) { - #ifdef CL_VERSION_1_2 + #ifdef BOOST_COMPUTE_CL_VERSION_1_2 return image_object::is_supported_format( format, context, CL_MEM_OBJECT_IMAGE1D, flags ); diff --git a/boost/compute/image/image2d.hpp b/boost/compute/image/image2d.hpp index c203a9417f..edfe98de5a 100644 --- a/boost/compute/image/image2d.hpp +++ b/boost/compute/image/image2d.hpp @@ -58,7 +58,7 @@ public: { cl_int error = 0; - #ifdef CL_VERSION_1_2 + #ifdef BOOST_COMPUTE_CL_VERSION_1_2 cl_image_desc desc; desc.image_type = CL_MEM_OBJECT_IMAGE2D; desc.image_width = image_width; @@ -69,7 +69,7 @@ public: desc.image_slice_pitch = 0; desc.num_mip_levels = 0; desc.num_samples = 0; - #ifdef CL_VERSION_2_0 + #ifdef BOOST_COMPUTE_CL_VERSION_2_0 desc.mem_object = 0; #else desc.buffer = 0; @@ -108,7 +108,7 @@ public: { cl_int error = 0; - #ifdef CL_VERSION_1_2 + #ifdef BOOST_COMPUTE_CL_VERSION_1_2 cl_image_desc desc; desc.image_type = CL_MEM_OBJECT_IMAGE2D; desc.image_width = image_width; @@ -119,7 +119,7 @@ public: desc.image_slice_pitch = 0; desc.num_mip_levels = 0; desc.num_samples = 0; - #ifdef CL_VERSION_2_0 + #ifdef BOOST_COMPUTE_CL_VERSION_2_0 desc.mem_object = 0; #else desc.buffer = 0; diff --git a/boost/compute/image/image3d.hpp b/boost/compute/image/image3d.hpp index 9463cfaa16..5569f2a0b9 100644 --- a/boost/compute/image/image3d.hpp +++ b/boost/compute/image/image3d.hpp @@ -54,7 +54,7 @@ public: { cl_int error = 0; - #ifdef CL_VERSION_1_2 + #ifdef BOOST_COMPUTE_CL_VERSION_1_2 cl_image_desc desc; desc.image_type = CL_MEM_OBJECT_IMAGE3D; desc.image_width = image_width; @@ -65,7 +65,7 @@ public: desc.image_slice_pitch = image_slice_pitch; desc.num_mip_levels = 0; desc.num_samples = 0; - #ifdef CL_VERSION_2_0 + #ifdef BOOST_COMPUTE_CL_VERSION_2_0 desc.mem_object = 0; #else desc.buffer = 0; @@ -108,7 +108,7 @@ public: { cl_int error = 0; - #ifdef CL_VERSION_1_2 + #ifdef BOOST_COMPUTE_CL_VERSION_1_2 cl_image_desc desc; desc.image_type = CL_MEM_OBJECT_IMAGE3D; desc.image_width = image_width; @@ -119,7 +119,7 @@ public: desc.image_slice_pitch = image_slice_pitch; desc.num_mip_levels = 0; desc.num_samples = 0; - #ifdef CL_VERSION_2_0 + #ifdef BOOST_COMPUTE_CL_VERSION_2_0 desc.mem_object = 0; #else desc.buffer = 0; diff --git a/boost/compute/image/image_sampler.hpp b/boost/compute/image/image_sampler.hpp index 4f1bfe9b86..26f20aa9d5 100644 --- a/boost/compute/image/image_sampler.hpp +++ b/boost/compute/image/image_sampler.hpp @@ -55,7 +55,7 @@ public: { cl_int error = 0; - #ifdef CL_VERSION_2_0 + #ifdef BOOST_COMPUTE_CL_VERSION_2_0 std::vector<cl_sampler_properties> sampler_properties; sampler_properties.push_back(CL_SAMPLER_NORMALIZED_COORDS); sampler_properties.push_back(cl_sampler_properties(normalized_coords)); |