spectral

Structures copy ?

Discussion created by spectral on Oct 26, 2010
Latest reply on Oct 27, 2010 by spectral

Hi,

In my host I prepare a buffer with different kind of informations (different types of structures). And so, in my kernel I would like to get this information :

I have try this :

__constant char* buffer = ....

BSDFParam_area_light bsdf = *((BSDFParam_area_light*)buffer);

 

But I got an error message : "error: invalid type conversion"

Do you have a solution ?

Outcomes