Vulkan

Typedefs

typedef struct VkInstance_T *VkInstance
typedef sfUint64 VkSurfaceKHR
typedef struct VkAllocationCallbacks VkAllocationCallbacks
typedef void (*sfVulkanFunctionPointer)(void)

Functions

sfBool sfVulkan_isAvailable(sfBool requireGraphics)

Tell whether or not the system supports Vulkan.

This function should always be called before using the Vulkan features. If it returns false, then any attempt to use Vulkan will fail.

If only compute is required, set requireGraphics to false to skip checking for the extensions necessary for graphics rendering.

Parameters:
  • requireGraphics

Returns:

True if Vulkan is supported, false otherwise

sfVulkanFunctionPointer sfVulkan_getFunction(const char *name)

Get the address of a Vulkan function.

Parameters:
  • name – Name of the function to get the address of

Returns:

Address of the Vulkan function, 0 on failure

const char *const *sfVulkan_getGraphicsRequiredInstanceExtensions(size_t *count)

Get Vulkan instance extensions required for graphics.

Parameters:
  • count – Pointer to a variable that will be filled with the number of instance extensions in the array

Returns:

Vulkan instance extensions required for graphics