• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/* WARNING: This is auto-generated file. Do not modify, since changes will
2 * be lost! Modify the generating script instead.
3 * This file was generated by /scripts/gen_framework.py
4 */
5
6
7VkResult PlatformDriver::createInstance (const VkInstanceCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkInstance* pInstance) const
8{
9	return m_vk.createInstance(pCreateInfo, pAllocator, pInstance);
10}
11
12PFN_vkVoidFunction PlatformDriver::getInstanceProcAddr (VkInstance instance, const char* pName) const
13{
14	return m_vk.getInstanceProcAddr(instance, pName);
15}
16
17VkResult PlatformDriver::enumerateInstanceVersion (uint32_t* pApiVersion) const
18{
19	if (m_vk.enumerateInstanceVersion)
20		return m_vk.enumerateInstanceVersion(pApiVersion);
21
22	*pApiVersion = VK_API_VERSION_1_0;
23	return VK_SUCCESS;
24}
25
26VkResult PlatformDriver::enumerateInstanceLayerProperties (uint32_t* pPropertyCount, VkLayerProperties* pProperties) const
27{
28	return m_vk.enumerateInstanceLayerProperties(pPropertyCount, pProperties);
29}
30
31VkResult PlatformDriver::enumerateInstanceExtensionProperties (const char* pLayerName, uint32_t* pPropertyCount, VkExtensionProperties* pProperties) const
32{
33	return m_vk.enumerateInstanceExtensionProperties(pLayerName, pPropertyCount, pProperties);
34}
35