NVIDIAGameWorks / nvrhi

MIT License
828 stars 97 forks source link

C API? #36

Open crystalthoughts opened 1 year ago

crystalthoughts commented 1 year ago

Hello, Is there a C API available for this, I don't spot one. It would really help with adoption if bindings could be created for other languages. Also how is this different from https://github.com/NVIDIAGameWorks/NRI ?

apanteleev commented 1 year ago

There is no C API for NVRHI, and it's not currently planned. What language(s) are you looking to use it with?

Re. NRI - these libraries solve similar problems differently; NVRHI is a more high-level API focused on ease of use (while providing good performance and the ability to go low-level easily) while NRI is a lower-level API that requires more code on the user side.

dzhdanNV commented 5 months ago

NRI has evolved a lot since last year (thanks to the community). And NRI has C API. But, yes, it's a low level RHI requiring more work on your side.

crystalthoughts commented 2 months ago

@apanteleev Late reply but - Nim, Zig, Odin are all nice languages but C++ doesn't play well with others :) I'll take a closer look at NRI