What to put in native layer? #23
amerkoleci
started this conversation in
General
Replies: 1 comment 1 reply
-
I think the exact line is going to be subjective, but I try to just separate it with whatever ends up being easier in each language. A lot of the time stuff is much simpler in C#, so I'll put it there. But certain things like image loading, font loading, rendering, etc, is just simpler in C so it goes there. But the exact line is kind of arbitrary... Honestly for high level rendering & asset pipelines, I would do that all in C#. I think it's performant enough (for anything I would ever make, anyway) and it will be so much easier to architect. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
In my game engine I have similar layer as Foster platform, it has SDL3, stb image/truetype, rhi backends supporting vulkan/d3d12, mini audio
It uses C++ for rhi backends (specially d3d12) .
I do plan to wrap Jolt Physics and Box2D.
Question is, what would make sense to put in C++ and what in C#? High level renderer? Asset pipeline?
Thanks for suggestions!
Beta Was this translation helpful? Give feedback.
All reactions