78 const VkPhysicalDeviceFeatures& features );
83 const std::vector< float >& queuePriorities );
90 const std::vector< float >& queuePriorities,
91 const VkPhysicalDeviceFeatures& features );
97 operator bool()
const;
106 unsigned int queueFamily ( EQueueType queueType )
const;
109 unsigned int queueCount ( EQueueType queueType )
const;
PipelineCache & defaultPipelineCache() const
Retrieves default pipeline cache for this device.
CommandPool & defaultCmdPool(EQueueType queueType=Q_GRAPHICS) const
Retrieves default command allocation pool for this device and specified queue type.
Represents logical rendering device.
Definition: vppDevice.hpp:49
bool hasFeature(EFeature feature) const
Checks whether the device supports specified feature and has enabled it.
VkResult waitForIdle()
Waits until all operations performed by this device are finished.
Definition: vppPipelineCache.hpp:31
bool supportsVersion(const SVulkanVersion &ver) const
Checks whether the device (and instance) supports specified Vulkan version.
The VPP namespace.
Definition: main.hpp:1
const std::set< std::string > & enabledExtensions() const
Retrieves the names of enabled device extensions.
Device()
Constructs null reference.
Allocates and manages the lifetime of command buffers.
Definition: vppCommandPool.hpp:36
VkDevice handle() const
Retrieves Vulkan handle for this device.
const PhysicalDevice & physical() const
Retrieves parent physical device for this logical device.
Represents physical rendering device.
Definition: vppPhysicalDevice.hpp:258
unsigned int queueCount(EQueueType queueType) const
Retrieves queue count within default queue family of specified type.
float queuePriority(unsigned int iQueue) const
Retrieves queue priority for specified queue index within default graphics queue family.
EFeature
Optional device feature enumeration.
Definition: vppPhysicalDevice.hpp:64
Structure holding information about Vulkan version.
Definition: vppInstance.hpp:35
~Device()
Decreases reference count. Deletes the device object when count reaches zero.
unsigned int queueFamily(EQueueType queueType) const
Retrieves default queue family index for queues of specified type.