[Core] Readd XCB
This commit is contained in:
Родитель
d8b878f2f0
Коммит
4f87d2e7ec
|
@ -1718,6 +1718,12 @@ namespace SharpVulkan
|
|||
None = 0,
|
||||
}
|
||||
|
||||
[Flags]
|
||||
public enum XcbSurfaceCreateFlags : int
|
||||
{
|
||||
None = 0,
|
||||
}
|
||||
|
||||
[Flags]
|
||||
public enum AndroidSurfaceCreateFlags : int
|
||||
{
|
||||
|
|
|
@ -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__;
|
||||
|
|
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче