 |
VulkanDeviceCreate(VulkanSurfaceProvider, ActionEngineCreateOptions, String) Method |
Creates an instance of VulkanDevice that will use the Vulkan surface that is defined by the VulkanSurfaceProvider
and will configure the EngineCreateOptions by using the specified configure action.
This method will also create a VulkanInstance if it was not created before.
Namespace: Ab4d.SharpEngine.VulkanAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntaxpublic static VulkanDevice Create(
VulkanSurfaceProvider? defaultSurfaceProvider,
Action<EngineCreateOptions>? configure,
string? deviceName = null
)
Parameters
- defaultSurfaceProvider VulkanSurfaceProvider
- Vulkan surface that is defined by the VulkanSurfaceProvider
- configure ActionEngineCreateOptions
- action that defines the EngineCreateOptions
- deviceName String (Optional)
- optional device name
Return Value
VulkanDevicecreated VulkanDevice
See Also