Ejemplo n.º 1
0
 public DirectFunctions(IVkInstance instance)
 {
     GetPhysicalDeviceProperties            = VkHelpers.GetInstanceDelegate <GetPhysicalDevicePropertiesDelegate>(instance, "vkGetPhysicalDeviceProperties");
     GetPhysicalDeviceQueueFamilyProperties = VkHelpers.GetInstanceDelegate <GetPhysicalDeviceQueueFamilyPropertiesDelegate>(instance, "vkGetPhysicalDeviceQueueFamilyProperties");
     CreateDevice = VkHelpers.GetInstanceDelegate <CreateDeviceDelegate>(instance, "vkCreateDevice");
     GetPhysicalDeviceFeatures                    = VkHelpers.GetInstanceDelegate <GetPhysicalDeviceFeaturesDelegate>(instance, "vkGetPhysicalDeviceFeatures");
     GetPhysicalDeviceMemoryProperties            = VkHelpers.GetInstanceDelegate <GetPhysicalDeviceMemoryPropertiesDelegate>(instance, "vkGetPhysicalDeviceMemoryProperties");
     GetPhysicalDeviceSparseImageFormatProperties = VkHelpers.GetInstanceDelegate <GetPhysicalDeviceSparseImageFormatPropertiesDelegate>(instance, "vkGetPhysicalDeviceSparseImageFormatProperties");
     GetPhysicalDeviceDisplayPropertiesKHR        = VkHelpers.GetInstanceDelegate <GetPhysicalDeviceDisplayPropertiesKHRDelegate>(instance, "vkGetPhysicalDeviceDisplayPropertiesKHR");
     GetPhysicalDeviceDisplayPlanePropertiesKHR   = VkHelpers.GetInstanceDelegate <GetPhysicalDeviceDisplayPlanePropertiesKHRDelegate>(instance, "vkGetPhysicalDeviceDisplayPlanePropertiesKHR");
     GetDisplayPlaneSupportedDisplaysKHR          = VkHelpers.GetInstanceDelegate <GetDisplayPlaneSupportedDisplaysKHRDelegate>(instance, "vkGetDisplayPlaneSupportedDisplaysKHR");
     GetDisplayModePropertiesKHR                  = VkHelpers.GetInstanceDelegate <GetDisplayModePropertiesKHRDelegate>(instance, "vkGetDisplayModePropertiesKHR");
     CreateDisplayModeKHR                           = VkHelpers.GetInstanceDelegate <CreateDisplayModeKHRDelegate>(instance, "vkCreateDisplayModeKHR");
     GetDisplayPlaneCapabilitiesKHR                 = VkHelpers.GetInstanceDelegate <GetDisplayPlaneCapabilitiesKHRDelegate>(instance, "vkGetDisplayPlaneCapabilitiesKHR");
     GetPhysicalDeviceSurfaceSupportKHR             = VkHelpers.GetInstanceDelegate <GetPhysicalDeviceSurfaceSupportKHRDelegate>(instance, "vkGetPhysicalDeviceSurfaceSupportKHR");
     GetPhysicalDeviceMirPresentationSupportKHR     = VkHelpers.GetInstanceDelegate <GetPhysicalDeviceMirPresentationSupportKHRDelegate>(instance, "vkGetPhysicalDeviceMirPresentationSupportKHR");
     GetPhysicalDeviceWaylandPresentationSupportKHR = VkHelpers.GetInstanceDelegate <GetPhysicalDeviceWaylandPresentationSupportKHRDelegate>(instance, "vkGetPhysicalDeviceWaylandPresentationSupportKHR");
     GetPhysicalDeviceWin32PresentationSupportKHR   = VkHelpers.GetInstanceDelegate <GetPhysicalDeviceWin32PresentationSupportKHRDelegate>(instance, "vkGetPhysicalDeviceWin32PresentationSupportKHR");
     GetPhysicalDeviceXcbPresentationSupportKHR     = VkHelpers.GetInstanceDelegate <GetPhysicalDeviceXcbPresentationSupportKHRDelegate>(instance, "vkGetPhysicalDeviceXcbPresentationSupportKHR");
     GetPhysicalDeviceXlibPresentationSupportKHR    = VkHelpers.GetInstanceDelegate <GetPhysicalDeviceXlibPresentationSupportKHRDelegate>(instance, "vkGetPhysicalDeviceXlibPresentationSupportKHR");
     GetPhysicalDeviceSurfaceCapabilitiesKHR        = VkHelpers.GetInstanceDelegate <GetPhysicalDeviceSurfaceCapabilitiesKHRDelegate>(instance, "vkGetPhysicalDeviceSurfaceCapabilitiesKHR");
     GetPhysicalDeviceSurfaceFormatsKHR             = VkHelpers.GetInstanceDelegate <GetPhysicalDeviceSurfaceFormatsKHRDelegate>(instance, "vkGetPhysicalDeviceSurfaceFormatsKHR");
     GetPhysicalDeviceSurfacePresentModesKHR        = VkHelpers.GetInstanceDelegate <GetPhysicalDeviceSurfacePresentModesKHRDelegate>(instance, "vkGetPhysicalDeviceSurfacePresentModesKHR");
     EnumerateDeviceExtensionProperties             = VkHelpers.GetInstanceDelegate <EnumerateDeviceExtensionPropertiesDelegate>(instance, "vkEnumerateDeviceExtensionProperties");
 }
Ejemplo n.º 2
0
 public DirectFunctions()
 {
     EnumerateInstanceLayerProperties =
         VkHelpers.GetInstanceDelegate <EnumerateInstanceLayerPropertiesDelegate>(null, "vkEnumerateInstanceLayerProperties");
     EnumerateInstanceExtensionProperties =
         VkHelpers.GetInstanceDelegate <EnumerateInstanceExtensionPropertiesDelegate>(null, "vkEnumerateInstanceExtensionProperties");
     CreateInstance =
         VkHelpers.GetInstanceDelegate <CreateInstanceDelegate>(null, "vkCreateInstance");
 }
Ejemplo n.º 3
0
 public DirectFunctions(IVkInstance instance)
 {
     DestroyInstance               = VkHelpers.GetInstanceDelegate <DestroyInstanceDelegate>(instance, "vkDestroyInstance");
     EnumeratePhysicalDevices      = VkHelpers.GetInstanceDelegate <EnumeratePhysicalDevicesDelegate>(instance, "vkEnumeratePhysicalDevices");
     CreateAndroidSurfaceKHR       = VkHelpers.GetInstanceDelegate <CreateAndroidSurfaceKHRDelegate>(instance, "vkCreateAndroidSurfaceKHR");
     CreateMirSurfaceKHR           = VkHelpers.GetInstanceDelegate <CreateMirSurfaceKHRDelegate>(instance, "vkCreateMirSurfaceKHR");
     CreateWaylandSurfaceKHR       = VkHelpers.GetInstanceDelegate <CreateWaylandSurfaceKHRDelegate>(instance, "vkCreateWaylandSurfaceKHR");
     CreateWin32SurfaceKHR         = VkHelpers.GetInstanceDelegate <CreateWin32SurfaceKHRDelegate>(instance, "vkCreateWin32SurfaceKHR");
     CreateXcbSurfaceKHR           = VkHelpers.GetInstanceDelegate <CreateXcbSurfaceKHRDelegate>(instance, "vkCreateXcbSurfaceKHR");
     CreateXlibSurfaceKHR          = VkHelpers.GetInstanceDelegate <CreateXlibSurfaceKHRDelegate>(instance, "vkCreateXlibSurfaceKHR");
     DestroySurfaceKHR             = VkHelpers.GetInstanceDelegate <DestroySurfaceKHRDelegate>(instance, "vkDestroySurfaceKHR");
     CreateDisplayPlaneSurfaceKHR  = VkHelpers.GetInstanceDelegate <CreateDisplayPlaneSurfaceKHRDelegate>(instance, "vkCreateDisplayPlaneSurfaceKHR");
     CreateDebugReportCallbackEXT  = VkHelpers.GetInstanceDelegate <CreateDebugReportCallbackEXTDelegate>(instance, "vkCreateDebugReportCallbackEXT");
     DebugReportMessageEXT         = VkHelpers.GetInstanceDelegate <DebugReportMessageEXTDelegate>(instance, "vkDebugReportMessageEXT");
     DestroyDebugReportCallbackEXT = VkHelpers.GetInstanceDelegate <DestroyDebugReportCallbackEXTDelegate>(instance, "vkDestroyDebugReportCallbackEXT");
 }