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

what is the clamp in shader.py in gpu branch #6

Open
luoww1992 opened this issue Aug 23, 2021 · 1 comment
Open

what is the clamp in shader.py in gpu branch #6

luoww1992 opened this issue Aug 23, 2021 · 1 comment

Comments

@luoww1992
Copy link

luoww1992 commented Aug 23, 2021

what is the func:clamp in shader.py ?
how to import it?
i can't find it

@luoww1992 luoww1992 changed the title what is the clamp in shader.py what is the clamp in shader.py in gpu branch Aug 23, 2021
@yoonsikp
Copy link
Owner

Unfortunately the GPU branch is quite buggy. It's actually an issue with pygpu. I've tried updating it a few months ago to the latest version, but I still ran into crashes. This is the issue I created:

pygfx/wgpu-py#129

I think pyshader is responsible for replacing the clamp with its own implementation. You can find the function definition here:

https://github.com/pygfx/pyshader/blob/master/pyshader/stdlib.py

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

2 participants