Skip to content
Discussion options

You must be logged in to vote

If you want to share GPU objects with two Scenes, they need to use the same VulkanDevice (usually set to the GpuDevice property).

There are multiple ways how to do that.
You can first manually create the VulkanDevice and then use that to create both Scene objects. If you are using SharpEngineSceneView, you can create two instances of SharpEngineSceneView and then call the Initialize method and pass VulkanDevice as a parameter.

Another option is to create one SharpEnginSceneView object and after calling Initialize method (without parameters or with createOptions as a parameter) on it get the created VulkanDevice from the Scene.GpuDevice property. Then use the VulkanDevice from the GpuPrope…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by abenedik
Comment options

You must be logged in to vote
0 replies
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