Using structures and classes inside the _global_ kernel

Hi all,
is there a way to use inside global kernel:

  1. Simple structures like:
Structure Pixel{
   float p;
  1. Classes with functions and overloaded operators (C++)

  2. std:: vector?


  1. Yes

  2. Yes

  3. No

Perhaps you should read some aspects of the programming guide:

There are also many CUDA sample codes that demonstrate various aspects of C++ usage:

(such as overloading)