diff --git a/Source/SharpVulkan/Generated/Enumerations.cs b/Source/SharpVulkan/Generated/Enumerations.cs index 593710b..cbffb61 100644 --- a/Source/SharpVulkan/Generated/Enumerations.cs +++ b/Source/SharpVulkan/Generated/Enumerations.cs @@ -1718,6 +1718,12 @@ namespace SharpVulkan None = 0, } + [Flags] + public enum XcbSurfaceCreateFlags : int + { + None = 0, + } + [Flags] public enum AndroidSurfaceCreateFlags : int { diff --git a/Source/SharpVulkan/Generated/Functions.cs b/Source/SharpVulkan/Generated/Functions.cs index e85b6f4..051998a 100644 --- a/Source/SharpVulkan/Generated/Functions.cs +++ b/Source/SharpVulkan/Generated/Functions.cs @@ -108,6 +108,19 @@ namespace SharpVulkan [DllImport(Vulkan.LibraryName, CallingConvention = CallingConvention.StdCall)] internal static extern unsafe Result vkCreateXlibSurfaceKHR(Instance instance, XlibSurfaceCreateInfo* createInfo, AllocationCallbacks* allocator, Surface* surface); + public unsafe Surface CreateXcbSurface(ref XcbSurfaceCreateInfo createInfo, AllocationCallbacks* allocator = null) + { + Surface surface; + fixed (XcbSurfaceCreateInfo* __createInfo__ = &createInfo) + { + vkCreateXcbSurfaceKHR(this, __createInfo__, allocator, &surface).CheckError(); + } + return surface; + } + + [DllImport(Vulkan.LibraryName, CallingConvention = CallingConvention.StdCall)] + internal static extern unsafe Result vkCreateXcbSurfaceKHR(Instance instance, XcbSurfaceCreateInfo* createInfo, AllocationCallbacks* allocator, Surface* surface); + public unsafe Surface CreateAndroidSurface(ref AndroidSurfaceCreateInfo createInfo, AllocationCallbacks* allocator = null) { Surface surface; @@ -399,6 +412,16 @@ namespace SharpVulkan [DllImport(Vulkan.LibraryName, CallingConvention = CallingConvention.StdCall)] internal static extern unsafe RawBool vkGetPhysicalDeviceXlibPresentationSupportKHR(PhysicalDevice physicalDevice, uint queueFamilyIndex, IntPtr dpy, uint visualId); + public unsafe RawBool GetXcbPresentationSupport(uint queueFamilyIndex, IntPtr connection, uint visualid) + { + RawBool __result__; + __result__ = vkGetPhysicalDeviceXcbPresentationSupportKHR(this, queueFamilyIndex, connection, visualid); + return __result__; + } + + [DllImport(Vulkan.LibraryName, CallingConvention = CallingConvention.StdCall)] + internal static extern unsafe RawBool vkGetPhysicalDeviceXcbPresentationSupportKHR(PhysicalDevice physicalDevice, uint queueFamilyIndex, IntPtr connection, uint visualid); + public unsafe RawBool GetWin32PresentationSupport(uint queueFamilyIndex) { RawBool __result__; diff --git a/Source/SharpVulkan/Generated/Structures.cs b/Source/SharpVulkan/Generated/Structures.cs index 843c5c4..82d1166 100644 --- a/Source/SharpVulkan/Generated/Structures.cs +++ b/Source/SharpVulkan/Generated/Structures.cs @@ -4840,6 +4840,19 @@ namespace SharpVulkan public uint Window; } + public partial struct XcbSurfaceCreateInfo + { + public StructureType StructureType; + + public IntPtr Next; + + public XcbSurfaceCreateFlags Flags; + + public IntPtr Connection; + + public uint Window; + } + public partial struct AndroidSurfaceCreateInfo { public StructureType StructureType;