patched examples to work with uniform for nvptx. function calls with non-generic pointers fail. need fix
This commit is contained in:
@@ -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];
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user