Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C bindings for other languages? #96

Open
amerkoleci opened this issue Oct 22, 2020 · 5 comments
Open

C bindings for other languages? #96

amerkoleci opened this issue Oct 22, 2020 · 5 comments
Labels
enhancement New feature or request

Comments

@amerkoleci
Copy link

Hi,
I'm keeping various C# .net bindings, for example vulkan, d3d12, d3d11 etc.

Would be possible to generate C bindings into dll/so/dylib so I can bridge the API?

Feel free to close the issue if not appropriate for the project.

Thanks in advance

@amerkoleci amerkoleci added the enhancement New feature or request label Oct 22, 2020
@repi
Copy link
Contributor

repi commented Oct 22, 2020

That is an interesting idea and some base work here is done for as we do generate a C ABI to talk between the Rust and C++ code.

But would say it is out of scope for this project specifically as its goals is to just use PhysX inside Rust, but would be cool if someone uses the same binding mechanisms we used here to create a pure C binding for other languages to use

@amerkoleci
Copy link
Author

I see, are the generated C files under repo and compilable?

@h3r2tic
Copy link
Contributor

h3r2tic commented Oct 22, 2020

@amerkoleci
Copy link
Author

Thanks for info's, will try and report back.

@neuecc
Copy link

neuecc commented Apr 19, 2023

I have started using physx-rs(physx-sys) in C# for the purpose of utilizing a physics engine.
With my csbindgen project, I was able to automatically generate complete bindings.
https://github.com/Cysharp/csbindgen/blob/main/dotnet-sandbox/libphysx_csbindgen.cs
Thank you for sharing this wonderful project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants