Steppable 0.0.1
A CAS project written from scratch in C++
|
Typedefs | |
typedef void(* | GLFWvkproc) (void) |
Vulkan API function pointer type. | |
Functions | |
GLFWAPI int | glfwVulkanSupported (void) |
Returns whether the Vulkan loader has been found. | |
GLFWAPI const char ** | glfwGetRequiredInstanceExtensions (uint32_t *count) |
Returns the Vulkan instance extensions required by GLFW. | |
This is the reference documentation for Vulkan related functions and types. For more task-oriented information, see the vulkan_guide.
typedef void(* GLFWvkproc) (void) |
Vulkan API function pointer type.
Generic function pointer used for returning Vulkan API function pointers without forcing a cast from a regular pointer.
GLFWAPI const char ** glfwGetRequiredInstanceExtensions | ( | uint32_t * | count | ) |
Returns the Vulkan instance extensions required by GLFW.
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 contains VK_KHR_surface
, so if you don't require any additional extensions you can pass this list directly to the VkInstanceCreateInfo
struct.
If Vulkan is not available on the machine, this function returns NULL
and generates a GLFW_API_UNAVAILABLE error. Call glfwVulkanSupported to check whether Vulkan is available.
If Vulkan is available but no set of extensions allowing window surface creation was found, this function returns NULL
. You may still use Vulkan for off-screen rendering and compute work.
[out] | count | Where to store the number of extensions in the returned array. This is set to zero if an error occurred. |
NULL
if an error occurred.@errors Possible errors include GLFW_NOT_INITIALIZED and GLFW_API_UNAVAILABLE.
VkInstanceCreateInfo
struct.@pointer_lifetime 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.
@thread_safety This function may be called from any thread.
GLFWAPI int glfwVulkanSupported | ( | void | ) |
Returns whether the Vulkan loader has been found.
This function returns whether the Vulkan loader has been found. This check is performed by glfwInit.
The availability of a Vulkan loader does not by itself guarantee that window surface creation or even device creation is possible. Call glfwGetRequiredInstanceExtensions to check whether the extensions necessary for Vulkan surface creation are available and glfwGetPhysicalDevicePresentationSupport to check whether a queue family of a physical device supports image presentation.
GLFW_TRUE
if Vulkan is available, or GLFW_FALSE
otherwise.@errors Possible errors include GLFW_NOT_INITIALIZED.
@thread_safety This function may be called from any thread.