Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Export shader #114

Answered by doug-moen
zeeyang asked this question in Q&A
Apr 9, 2021 · 4 comments · 1 reply
Discussion options

You must be logged in to vote

The function that writes the shape compiler output as a *.gpu file is located at

libcurv/viewed_shape.cc   Viewed_Shape::write_curv()

In that same source file, there is also a function called write_json(), which isn't currently being used. That might be a solution to your problem, since whatever programming language your app is written in, you will have a JSON parser library available.

The code for exporting a *.gpu file, which calls Viewed_Shape::write_curv(), is located in

curv/export.cc   export_gpu()

So my first idea is that you could add the ability to export a *.jcpu file containing JSON code.

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by zeeyang
Comment options

You must be logged in to vote
1 reply
@zeeyang
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants