Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heightfield SDF, giving OCL error. #8

Open
vinyvince opened this issue Sep 4, 2023 · 0 comments
Open

Heightfield SDF, giving OCL error. #8

vinyvince opened this issue Sep 4, 2023 · 0 comments

Comments

@vinyvince
Copy link

Hello!
That example look very interesting but i can't make it work.. For your heighfield SDF hip demo....
Cheers

3 errors generated.
OpenCL Exception: :337:27: error: use of undeclared identifier 'dirx'
int x1 = (int)(gidx + dirx[gid] * 10);
^
:338:27: error: use of undeclared identifier 'diry'
int y1 = (int)(gidy + diry[gid] * 10);
^
:403:42: error: used type 'float' where floating point type is not allowed
scratch[gid] = scratch_lastmask[gid] ? heightmin : density[gid];
~~~~~~~~~~~~~~~~~~~~~ ^
clBuildProgram (-11)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant