Pass inherited struct to kernel?

Hi,

according to the CUDA Programming Guide 3.0 inheritance is supported. Before I start implementing I would like to ask whether the following construction works:

struct A
{
unsigned int valueA;
};

struct B : A
{
unsigned int valueB;
};

Can I pass B to a kernel?

Thanks in advance,

Kwyjibo

Hi,

according to the CUDA Programming Guide 3.0 inheritance is supported. Before I start implementing I would like to ask whether the following construction works:

struct A
{
unsigned int valueA;
};

struct B : A
{
unsigned int valueB;
};

Can I pass B to a kernel?

Thanks in advance,

Kwyjibo

Sorry for the repost.

Please answer in the first thread: [url=“http://forums.nvidia.com/index.php?showtopic=183459”]The Official NVIDIA Forums | NVIDIA

Sorry for the repost.

Please answer in the first thread: [url=“The Official NVIDIA Forums | NVIDIA”]The Official NVIDIA Forums | NVIDIA