Commit 3e5a82f
authored
Refactor LibToOSO tool (#2691)
* Localize the compileOSL() code, this removes the dependency on MaterialXRender
* Add optional dependency on liboslcomp, which allows compiling of the osos without using std::system. This significantly speeds up compilation time, on my machine dropping from about a minute for the entire data library to about 15 seconds.
* With liboslcomp, we can avoid writing the OSL source to disk - saving space. This is controlled by a command line argument
* Add command line arguments to specify data library location
* Add argument to avoid writing the MaterialX document for the implementation elements, this may be helpful for those not using MaterialX shader generation.1 parent 04e5071 commit 3e5a82f
2 files changed
+252
-72
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
| 17 | + | |
19 | 18 | | |
20 | 19 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | 20 | | |
29 | 21 | | |
30 | | - | |
31 | | - | |
32 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
| |||
0 commit comments