cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

spectral
Adept II

OpenCL alignment

Hi,

I have the following C++ structure :

struct plXYZ  { float x,y,z; }

typedef struct

 

{

float turbidity;

float thetaSun, phiSun;

float Zenith_x, Zenith_y, Zenith_Y;

float zenithL_A, zenithL_B, zenithL_C, zenithL_D, zenithL_E;

float zenithX_A, zenithX_B, zenithX_C, zenithX_D, zenithX_E;

float zenithY_A, zenithY_B, zenithY_C, zenithY_D, zenithY_E;

plXYZ sunDirection;

plXYZ sunSpectralRadiance;

float sunSolidAngle;

cl_float8 riS0Spectrum;

cl_float8 riS1Spectrum;

cl_float8 riS2Spectrum;

cl_float8 Y;

float yint;



} CLPhysicalSkyLight;

 

And the following OpenCL structure :

 

typedef struct

{

float turbidity;

float thetaSun, phiSun;

float Zenith_x, Zenith_y, Zenith_Y;

float zenithL_A, zenithL_B, zenithL_C, zenithL_D, zenithL_E;

float zenithX_A, zenithX_B, zenithX_C, zenithX_D, zenithX_E;

float zenithY_A, zenithY_B, zenithY_C, zenithY_D, zenithY_E;

float sunDirectionX, sunDirectionY, sunDirectionZ;

float sunSpectralRadianceX,sunSpectralRadianceY,sunSpectralRadianceZ;

float sunSolidAngle;

// Constants for 'chromacity to spectrum'

float8 riS0Spectrum;

float8 riS1Spectrum;

float8 riS2Spectrum;

float8 Y;

float yint;

} PhysicalSkyLight;

 

0 Likes
14 Replies