Vulkan helper functions.
More...
#include <SFML/Window/Vulkan.hpp>
Vulkan helper functions.
Definition at line 62 of file Vulkan.hpp.
◆ getFunction()
static VulkanFunctionPointer sf::Vulkan::getFunction |
( |
const char * |
name | ) |
|
|
static |
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
◆ getGraphicsRequiredInstanceExtensions()
static const std::vector< const char * > & sf::Vulkan::getGraphicsRequiredInstanceExtensions |
( |
| ) |
|
|
static |
Get Vulkan instance extensions required for graphics.
- Returns
- Vulkan instance extensions required for graphics
◆ isAvailable()
static bool sf::Vulkan::isAvailable |
( |
bool |
requireGraphics = true | ) |
|
|
static |
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
-
- Returns
- True if Vulkan is supported, false otherwise
The documentation for this class was generated from the following file: