patched examples to work with uniform for nvptx. function calls with non-generic pointers fail. need fix

This commit is contained in:
Evghenii
2014-01-08 14:25:21 +01:00
parent f98a8cc22f
commit d3dc5e0df1
5 changed files with 28 additions and 12 deletions

View File

@@ -366,7 +366,7 @@ volume_task(float density[], int _nVoxels[3],
int width, int height, float image[]) {
if (taskIndex0 >= taskCount0) return;
#if 1
#if 0
int nVoxels[3];
nVoxels[0] = _nVoxels[0];
nVoxels[1] = _nVoxels[1];

View File

@@ -328,7 +328,7 @@ volume_task(uniform float density[], uniform int _nVoxels[3],
{
if (taskIndex >= taskCount) return;
#if 1
#if 0 /* cannot pass shared memory pointers to functions, need to find a way to solve this one :S */
uniform int nVoxels[3];
nVoxels[0] = _nVoxels[0];
nVoxels[1] = _nVoxels[1];