CUDA experts, if I defined a new type in the main code:
struct float_3{ float x; float y; float z; };
and I transferred some data of this type to the device, can I make __device__ calls of this new type, ie:
__device__ float_3 foo(float_3 r,float b,int a){ }
Is it possible to create __device__ any type? Or just int , float , dlouble , void , etc. .... And is it possible to return a pointer to __device__? those. __device__ float_3* foo(){}
source share