grovesNL / spirv_cross

Safe Rust wrapper around SPIRV-Cross
Apache License 2.0
86 stars 42 forks source link

Let C++ API throw exceptions, instead of aborting #183

Closed Aandreba closed 1 year ago

Aandreba commented 1 year ago

Currently, there are some SPIR-V Cross errors that will just print to stderr and abort the program, which can cause a lot of undesired effects. By letting SPIR-V Cross throw esceptions on those cases, these can be catched and returned to Rust as errors instead of program-finishing aborts.