Revision: 56623
http://sourceforge.net/p/brlcad/code/56623
Author: ejno
Date: 2013-08-06 14:50:48 +0000 (Tue, 06 Aug 2013)
Log Message:
-----------
fix error in opencl code
Modified Paths:
--------------
brlcad/branches/opencl/src/librt/primitives/sph/sph.c
Modified: brlcad/branches/opencl/src/librt/primitives/sph/sph.c
===================================================================
--- brlcad/branches/opencl/src/librt/primitives/sph/sph.c 2013-08-06
14:08:32 UTC (rev 56622)
+++ brlcad/branches/opencl/src/librt/primitives/sph/sph.c 2013-08-06
14:50:48 UTC (rev 56623)
@@ -81,7 +81,6 @@
{
cl_float3 position;
cl_float radius;
- cl_int is_light;
};
@@ -108,15 +107,14 @@
const char * const clt_program_code = "\
-typedef struct\
+struct Sphere\
{\
float3 position;\
float radius;\
- int is_light;\
-} Sphere;\
+};\
\
\
-__kernel void ell_shot(__global float *output, __constant Sphere sphere,
Sphere vlight, float3 E, float3 V)\
+__kernel void ell_shot(__global float *output, struct Sphere sphere, struct
Sphere vlight, float3 E, float3 V)\
{\
float3 EO = sphere.position-(E+V);\
float v = dot(EO, V);\
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits