A Silk.NET.RHI library #2468
Unanswered
LouChiSoft
asked this question in
Ideas
Replies: 2 comments 1 reply
-
Silk.NET 3.0 will be using SDL3 which will likely be the recommended option to use for an RHI library. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Would be a waste of efforts TBF, RHI are usually tailored to engine/renderer. It's very hard to abstract everything for every use cases and devices and the only RHI that begins to achieve that is WebGPU. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This is a slightly related follow up to my previous suggestion about Slang found here: #2467.
Silk supports DX12, Vulkan and MoltenVK for Apple devices. This is probably enough to do "mid-level" RHI graphics API. Similar to SDL's new GPU API that takes the big three (or in the this case 2 + MoltenVK) and abstracts away a lot of the boiler plate that makes using them tedious. Vulkan especially.
My reasoning is that with 3.0 coming there will be a new API for windowing and as mentioned in the post above there is at least the intention to have Slang support. I feel like there could be some real value in having a "Silk API" for graphics that plugs the gaps between the APIs. For example, instead of getting the Vulkan surface from the window and passing that to a Vulkan pipeline you would have a Silk Window and pass it to a Silk graphics pipeline and the API would handle identifying which surface it needs based on which API it's currently using.
If setup correctly I could imagine a system that would be really well polished and straight forward to use and would give an opportunity to make the graphics API more C# like instead of marshalling data back and forth between the native boundary. And with Slang supporting basically every shader target under the sun and the ability to reflect back the structs used in them, if there was a source code generator that could map the Slang structs to C# structs you would have a really solid setup for passing data to and from the GPU.
Would love to discuss the potential value further if interested
Beta Was this translation helpful? Give feedback.
All reactions