50 unsigned int id()
const;
122 VkInstance
handle()
const;
createInstance & engineName(const char *v)
Sets the engine name (default: null).
createInstance & raw(bool v)
If set, VPP will not add any extensions automatically (default: false).
static VkResult enumerateExtensions(ExtensionProperties *pResult)
Gets a list of available Vulkan extensions for the instance.
createInstance & appName(const char *v)
Sets the application name (default: null).
unsigned int minor
Minor version number.
Definition: vppInstance.hpp:41
The VPP namespace.
Definition: main.hpp:1
static SVulkanVersion fromId(unsigned int id)
Creates from opaque identifier.
Base class for debug report generators.
Definition: vppDebugReporter.hpp:55
Instance factory class.
Definition: vppInstance.hpp:188
VkResult enumeratePhysicalDevices(PhysicalDevices *pResult) const
Gets a list of physical devices in the system.
static DebugReporter * getDebugReporter()
Gets currently registered debug reporter, or zero if there is no one.
unsigned int patch
Patch number.
Definition: vppInstance.hpp:44
const std::set< std::string > & enabledExtensions() const
Retrieves the names of enabled extensions.
createInstance()
Constructs instance factory object with default options.
static SVulkanVersion supportedVersion()
Gets the minimum of two versions: latest available and requested by user.
VkInstance handle() const
Retrieves Vulkan handle for the instance.
unsigned int major
Major version number.
Definition: vppInstance.hpp:38
createInstance & layer(const std::string &v)
Adds a layer to enable.
createInstance & appVersion(unsigned int v)
Sets the application version (default: 0).
createInstance & validation(bool v)
Sets the validation status (default: disabled).
Represents the instance of Vulkan system.
Definition: vppInstance.hpp:115
createInstance & ext(const std::string &v)
Adds an instance extension to enable.
bool valid() const
Checks whether instance creation has succeeded.
std::vector< PhysicalDevice > PhysicalDevices
Array of physical devices.
Definition: vppPhysicalDevice.hpp:343
unsigned int id() const
Returns opaque identifier.
std::string toString() const
Returns string representation.
Structure holding information about Vulkan version.
Definition: vppInstance.hpp:35
static SVulkanVersion getLatestAvailableVulkanVersion()
Gets newest Vulkan version available on the system.
createInstance & engineVersion(unsigned int v)
Sets the engine version (default: 0).
createInstance & vulkan(const SVulkanVersion &v)
Sets the target Vulkan version (default: 1.0.0).