Browse Source

Vk: Changes to PhysicalDevice

pull/202/head
Squareys 10 years ago committed by Squareys
parent
commit
5a6470346d
  1. 17
      src/Magnum/Vk/PhysicalDevice.h

17
src/Magnum/Vk/PhysicalDevice.h

@ -52,8 +52,12 @@ enum class QueueFlag: UnsignedInt {
class MAGNUM_VK_EXPORT PhysicalDevice {
public:
/** @brief Copying is not allowed */
PhysicalDevice(const PhysicalDevice&) = delete;
PhysicalDevice(): _physicalDevice{} {
}
PhysicalDevice(const PhysicalDevice& d):
PhysicalDevice(d._physicalDevice) {
}
/** @brief Move constructor */
PhysicalDevice(PhysicalDevice&& other);
@ -72,7 +76,14 @@ class MAGNUM_VK_EXPORT PhysicalDevice {
~PhysicalDevice();
/** @brief Copying is not allowed */
PhysicalDevice& operator=(const PhysicalDevice&) = delete;
PhysicalDevice& operator=(const PhysicalDevice& device){
_physicalDevice = device._physicalDevice;
_deviceMemoryProperties.memoryHeapCount = 0;
_deviceMemoryProperties.memoryTypeCount = 0;
return *this;
}
/** @brief Move assignment is not allowed */
PhysicalDevice& operator=(PhysicalDevice&&) = delete;

Loading…
Cancel
Save