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?

Thanks

  1. Yes

  2. Yes

  3. No

Perhaps you should read some aspects of the programming guide:

http://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#c-cplusplus-language-support

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

http://docs.nvidia.com/cuda/cuda-samples/index.html#basic-keyconcepts

(such as overloading)