| 3728 | { |
| 3729 | public: |
| 3730 | Image1DBuffer( |
| 3731 | const Context& context, |
| 3732 | cl_mem_flags flags, |
| 3733 | ImageFormat format, |
| 3734 | ::size_t width, |
| 3735 | const Buffer &buffer, |
| 3736 | cl_int* err = NULL) |
| 3737 | { |
| 3738 | cl_int error; |
| 3739 | cl_image_desc desc = |
| 3740 | { |
| 3741 | CL_MEM_OBJECT_IMAGE1D_BUFFER, |
| 3742 | width, |
| 3743 | 0, 0, 0, 0, 0, 0, 0, |
| 3744 | buffer() |
| 3745 | }; |
| 3746 | object_ = ::clCreateImage( |
| 3747 | context(), |
| 3748 | flags, |
| 3749 | &format, |
| 3750 | &desc, |
| 3751 | NULL, |
| 3752 | &error); |
| 3753 | |
| 3754 | detail::errHandler(error, __CREATE_IMAGE_ERR); |
| 3755 | if (err != NULL) { |
| 3756 | *err = error; |
| 3757 | } |
| 3758 | } |
| 3759 | |
| 3760 | Image1DBuffer() { } |
| 3761 |
nothing calls this directly
no test coverage detected