Skip to content
Discussion options

You must be logged in to vote

I think this is already supported, although it can be improved and documented better.

I'm currently in the process of rewriting the DirectX part of Stride.Graphics to use Silk.NET (which is a set of lighter, more modern bindings to OpenGL, Vulkan, DX, etc.). In the current state, the graphics objects already have an internal way of accessing the underlying native resource:

Here you can see the NativeBuffer property of Buffer.

While this is internal, there is also a public set of methods that can be used for marshalling between native types and Stride types:

For example, this method retrieves the ID3D11Resource from any Stride GraphicsResource.

With these, it should be quite simple to inte…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@grassofsky
Comment options

Answer selected by tebjan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants