mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-29 14:38:25 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
148
brutal.glfw/Brutal.Glfw/Generated/Libraries/Glfw.Vulkan.gen.cs
Normal file
148
brutal.glfw/Brutal.Glfw/Generated/Libraries/Glfw.Vulkan.gen.cs
Normal file
|
|
@ -0,0 +1,148 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.Glfw.Generate; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.GlfwApi
|
||||
{
|
||||
public static unsafe partial class Glfw
|
||||
{
|
||||
/// <summary>
|
||||
/// Returns whether the Vulkan loader and an ICD have been found.
|
||||
/// </summary>
|
||||
/// <returns><c>true</c> if Vulkan is minimally available, or <c>false</c> otherwise.</returns>
|
||||
/// <remarks>
|
||||
/// This function returns whether the Vulkan loader and any minimally functional ICD have been found.
|
||||
/// <para>
|
||||
/// The availability of a Vulkan loader and even an ICD does not by itself guarantee that surface creation
|
||||
/// or even instance creation is possible. Call
|
||||
/// <see cref="GetRequiredInstanceExtensions">GetRequiredInstanceExtensions</see> to check whether the
|
||||
/// extensions necessary for Vulkan surface creation are available and
|
||||
/// <see cref="GetPhysicalDevicePresentationSupport">GetPhysicalDevicePresentationSupport</see> to check
|
||||
/// whether a queue family of a physical device supports image presentation.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
/// <possibleErrors>
|
||||
/// <see cref="GlfwErrorCode.NotInitialized"/>
|
||||
/// </possibleErrors>
|
||||
/// <threadSafety>
|
||||
/// This function may be called from any thread.
|
||||
/// </threadSafety>
|
||||
/// <seealso href="https://www.glfw.org/docs/latest/vulkan_guide.html#vulkan_support">Querying for
|
||||
/// Vulkan support</seealso>
|
||||
public static bool VulkanSupported() => PInvoke.VulkanSupported() == GLFW_TRUE;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the Vulkan instance extensions required by GLFW.
|
||||
/// </summary>
|
||||
/// <returns>An array of ASCII encoded extension names, or <c>null</c> if an error occurred.</returns>
|
||||
/// <remarks>
|
||||
/// This function returns an array of names of Vulkan instance extensions required by GLFW for creating Vulkan
|
||||
/// surfaces for GLFW windows. If successful, the list will always contain <c>VK_KHR_surface</c>, so if you
|
||||
/// don't require any additional extensions you can pass this list directly to the VkInstanceCreateInfo
|
||||
/// struct.
|
||||
/// <para>
|
||||
/// If Vulkan is not available on the machine, this function returns <c>null</c> and generates a
|
||||
/// <see cref="GlfwErrorCode.ApiUnavailable"/> error. Call
|
||||
/// <see cref="VulkanSupported">Glfw.VulkanSupported</see> to check whether Vulkan is at least minimally
|
||||
/// available.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// If Vulkan is available but no set of extensions allowing window surface creation was found, this
|
||||
/// function returns <c>null</c>. You may still use Vulkan for off-screen rendering and compute work.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// Additional extensions may be required by future versions of GLFW. You should check if any extensions you
|
||||
/// wish to enable are already in the returned array, as it is an error to specify an extension more than
|
||||
/// once in the VkInstanceCreateInfo struct.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
/// <possibleErrors>
|
||||
/// <see cref="GlfwErrorCode.NotInitialized"/>, <see cref="GlfwErrorCode.ApiUnavailable"/>
|
||||
/// </possibleErrors>
|
||||
/// <pointerLifetime>
|
||||
/// The returned array is allocated and freed by GLFW. You should not free it yourself. It is guaranteed to be
|
||||
/// valid only until the library is terminated.
|
||||
/// </pointerLifetime>
|
||||
/// <threadSafety>
|
||||
/// This function may be called from any thread.
|
||||
/// </threadSafety>
|
||||
/// <seealso href="https://www.glfw.org/docs/latest/vulkan_guide.html#vulkan_ext">Querying required
|
||||
/// Vulkan extensions</seealso>
|
||||
public static byte** GetRequiredInstanceExtensions(out uint count) =>
|
||||
PInvoke.GetRequiredInstanceExtensions(out count);
|
||||
|
||||
/// <summary>
|
||||
/// Returns the address of the specified Vulkan instance function.
|
||||
/// </summary>
|
||||
/// <returns>The address of the function, or <c>null</c> if an error occurred.</returns>
|
||||
/// <remarks>
|
||||
/// This function returns the address of the specified Vulkan core or extension function for the specified
|
||||
/// instance. If instance is set to <c>null</c> it can return any function exported from the Vulkan loader,
|
||||
/// including at least the following functions:
|
||||
/// <list type="bullet">
|
||||
/// <item><c>vkEnumerateInstanceExtensionProperties</c></item>
|
||||
/// <item><c>vkEnumerateInstanceLayerProperties</c></item>
|
||||
/// <item><c>vkCreateInstance</c></item>
|
||||
/// <item><c>vkGetInstanceProcAddr</c></item>
|
||||
/// </list>
|
||||
/// <para>
|
||||
/// If Vulkan is not available on the machine, this function returns <c>null</c> and generates a
|
||||
/// <see cref="GlfwErrorCode.ApiUnavailable"/> error. Call
|
||||
/// <see cref="VulkanSupported">Glfw.VulkanSupported</see> to check whether Vulkan is at least minimally
|
||||
/// available.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// This function is equivalent to calling <c>vkGetInstanceProcAddr</c> with a platform-specific query of
|
||||
/// the Vulkan loader as a fallback.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
/// <possibleErrors>
|
||||
/// <see cref="GlfwErrorCode.NotInitialized"/>, <see cref="GlfwErrorCode.ApiUnavailable"/>
|
||||
/// </possibleErrors>
|
||||
/// <pointerLifetime>
|
||||
/// The returned pointer is valid until the library is terminated.
|
||||
/// </pointerLifetime>
|
||||
/// <threadSafety>
|
||||
/// This function may be called from any thread.
|
||||
/// </threadSafety>
|
||||
/// <seealso href="https://www.glfw.org/docs/latest/vulkan_guide.html#vulkan_proc">Querying Vulkan
|
||||
/// function pointers</seealso>
|
||||
public static nint GetInstanceProcAddress(nint instance, string procName) =>
|
||||
PInvoke.GetInstanceProcAddress(instance, procName);
|
||||
|
||||
/// <summary>
|
||||
/// Returns whether the specified queue family can present images.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This function returns whether the specified queue family of the specified physical device supports
|
||||
/// presentation to the specified platform GLFW was built for.
|
||||
/// <para>
|
||||
/// If Vulkan or the required window surface creation instance extensions are not available on the machine,
|
||||
/// or if the specified instance was not created with the required extensions, this function returns
|
||||
/// <c>false</c> and generates a <see cref="GlfwErrorCode.ApiUnavailable"/> error. Call
|
||||
/// <see cref="VulkanSupported">Glfw.VulkanSupported</see> to check whether Vulkan is at least minimally
|
||||
/// available and <see cref="GetRequiredInstanceExtensions">GetRequiredInstanceExtensions</see> to check
|
||||
/// what instance extensions are required.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
/// <macOS>
|
||||
/// This function currently always returns <c>true</c>, as the <c>VK_MVK_macos_surface</c> and
|
||||
/// <c>VK_EXT_metal_surface</c> extensions do not provide a function to query this.
|
||||
/// </macOS>
|
||||
/// <possibleErrors>
|
||||
/// <see cref="GlfwErrorCode.NotInitialized"/>, <see cref="GlfwErrorCode.ApiUnavailable"/>,
|
||||
/// <see cref="GlfwErrorCode.PlatformError"/>
|
||||
/// </possibleErrors>
|
||||
/// <threadSafety>
|
||||
/// This function may be called from any thread.
|
||||
/// </threadSafety>
|
||||
/// <seealso href="https://www.glfw.org/docs/latest/vulkan_guide.html#vulkan_present">Querying for
|
||||
/// Vulkan presentation support</seealso>
|
||||
public static bool GetPhysicalDevicePresentationSupport(
|
||||
nint instance,
|
||||
nint physicalDevice,
|
||||
int queueFamilyIndex
|
||||
) =>
|
||||
PInvoke.GetPhysicalDevicePresentationSupport(instance, physicalDevice, (uint)queueFamilyIndex) == GLFW_TRUE;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue