vfx-rs / ptex-bind

High-level cxx-based bindings for Ptex https://github.com/wdas/ptex https://crates.io/crates/ptex https://crates.io/crates/ptex-sys
https://crates.io/crates/ptex
Apache License 2.0
5 stars 2 forks source link

Make `Cache::get` take `AsRef<Path>` #5

Closed ratmice closed 6 months ago

ratmice commented 6 months ago

This makes the argument a little more convenient to use, e.g. so you can now also Cache::get("filename.ptx"). It also updates the texture docs to reference Cache::get, and make links clickable.

davvid commented 6 months ago

Thanks, nicely done. I'm going to merge this one as-is but please feel free to send a follow-up with docstring tweaks.