pycubelut icon indicating copy to clipboard operation
pycubelut copied to clipboard

what is the clamp in shader.py in gpu branch

Open luoww1992 opened this issue 3 years ago • 1 comments

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

luoww1992 avatar Aug 23 '21 15:08 luoww1992

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:

https://github.com/pygfx/wgpu-py/issues/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

yoonsikp avatar Aug 24 '21 03:08 yoonsikp