mono / VulkanSharp

Open source .NET binding for the Vulkan API
MIT License
538 stars 61 forks source link

Can't find Command #75

Closed ROAARKNGLn closed 6 years ago

ROAARKNGLn commented 6 years ago

i installed VulkanSharp trough the nuget package and i Can't find where EnumeratePhysicalDevices() pls help me

TillAlex commented 6 years ago

It's a function of the Instance class:

var instance = new Instance(new InstanceCreateInfo()); var physicalDevices = instance..EnumeratePhysicalDevices();

ROAARKNGLn commented 6 years ago

thank you very much is there some kind of documentation? because i found the doc folder but couldn't make anything from the xml files.. can you explain to me how to read properly the documentation?

ROAARKNGLn commented 6 years ago

or anyone else who knows how to view/read it.. can explain to me how?

TillAlex commented 6 years ago

I think you should better read the documentation of the Vulkan API itself. The only difference with VulkanSharp is that methods taking instances or devices as arguments in the Vulkan API are member functions of instances or devices in VulkanSharp. If you don't find a method use the search function of GitHub and search for the method name (vkEnumeratePhysicalDevices => EnumeratePhysicalDevices) to see which classes member it is.

You should also get the vulkan debug layers from the LunarG Vulkan SDK running. It helps a lot with debugging and understanding vulkan.