SharpVk icon indicating copy to clipboard operation
SharpVk copied to clipboard

Naming inconsistencies

Open Y-Less opened this issue 6 years ago • 1 comments

vkEnumerateDeviceExtensionProperties is in this library as PhysicalDevice.EnumerateDeviceExtensionProperties, duplicating the term Device. However, vkEnumerateInstanceExtensionProperties is Instance.EnumerateExtensionProperties, the second Instance has been dropped. Same for Enumerate(Thing)LayerProperties.

Y-Less avatar Jun 19 '19 13:06 Y-Less

The distinction here comes from Physical Device =/= Device - the Instance enumerate method is used for getting Instance extensions to create Instance objects, all sat within the same type. The Physical Device enumerate is used to get (logical) Device extensions to create (logical) Device objects, that are a different type than that which contains the enumerate/create methods.

FacticiusVir avatar Jun 20 '19 05:06 FacticiusVir