google / shaderc-rs

Rust bindings for the shaderc library.
https://docs.rs/shaderc
Apache License 2.0
261 stars 64 forks source link

Can Compiler be Send, even Sync? #113

Closed chubei-oppen closed 2 years ago

chubei-oppen commented 2 years ago

The comments here seems to imply Compiler can be both Send and Sync.

kocsis1david commented 2 years ago

It's strange that the compiler definition (typedef struct shaderc_compiler* shaderc_compiler_t;) is a non-const pointer.