shader-slang / slang-torch

A Python package for calling Slang modules from PyTorch.
Other
36 stars 8 forks source link

Bezier Curve Example in Slang #1

Open chinmay0301ucsd opened 7 months ago

chinmay0301ucsd commented 7 months ago

Hi, I wanted to contribute an example implementation of Bezier Curves in Slang. I wrote this for a class project at UCSD. The folder has examples of optimizing Control Points to fit shapes, and has code to compute SDFs for the Bezier Curve. I can add argparse support to the python files if needed.

saipraveenb25 commented 6 months ago

Hey, can you take a look at the optimized version of this code here: https://github.com/shader-slang/slang-torch/pull/6 and copy in the changed files to your PR? This version should compile very quickly without slow runtimes.

I'll merge this PR in once you copy over changes.