Results 1 to 4 of 4

Thread: C++ Binding Enhancements

  1. #1
    Junior Member
    Join Date
    Jun 2011
    Posts
    7

    C++ Binding Enhancements

    Hi,
    I'd like to suggest an enhancement to the C++ bindings to aid usability.
    Currently there are several member functions that take a vector of devices. For example:
    Code :
    Context(const VECTOR_CLASS<Device>& devices, ...)
    To use the above constructor with a single device, it is first necessary to make a vector containing the single device. I'd like to suggest adding matching functions that take a single device (where this makes sense), thereby avoiding the construction of a temporary vector
    So for the above example
    Code :
    Context(const Device& device, ...)

    Client code can then change from
    Code :
    cl::Context context(vector<cl::Device>(1, device));
    to
    Code :
    cl::Context context(device);
    Clearer and more efficient.

    Does anyone have any comments on this?
    What is the best way to submit this request?

    Steve.

  2. #2
    Senior Member
    Join Date
    May 2010
    Location
    Toronto, Canada
    Posts
    845

    Re: C++ Binding Enhancements

    What is the best way to submit this request?
    http://www.khronos.org/bugzilla/
    Disclaimer: Employee of Qualcomm Canada. Any opinions expressed here are personal and do not necessarily reflect the views of my employer. LinkedIn profile.

  3. #3
    Junior Member
    Join Date
    Oct 2009
    Posts
    6

    Re: C++ Binding Enhancements

    Seconded

  4. #4
    Junior Member
    Join Date
    Jun 2011
    Posts
    7

    Re: C++ Binding Enhancements


Similar Threads

  1. Deleting buffer in c++ binding
    By howaidi in forum OpenCL
    Replies: 0
    Last Post: 12-04-2011, 04:07 PM
  2. Binding a PBuffer to a texture.
    By Blackrider in forum OpenGL ES general technical discussions
    Replies: 1
    Last Post: 03-04-2005, 07:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •