diff --git a/framegen/include/vk/core/buffer.hpp b/framegen/include/vk/core/buffer.hpp index a35b000..3ef2df7 100644 --- a/framegen/include/vk/core/buffer.hpp +++ b/framegen/include/vk/core/buffer.hpp @@ -49,13 +49,6 @@ namespace VK::Core { [[nodiscard]] auto getMemory() const { return *this->memory; } /// Get the size of the buffer. [[nodiscard]] auto getSize() const { return this->size; } - - /// Trivially copyable, moveable and destructible - Buffer(const Buffer&) noexcept = default; - Buffer& operator=(const Buffer&) noexcept = default; - Buffer(Buffer&&) noexcept = default; - Buffer& operator=(Buffer&&) noexcept = default; - ~Buffer() = default; private: std::shared_ptr buffer; diff --git a/framegen/include/vk/core/commandbuffer.hpp b/framegen/include/vk/core/commandbuffer.hpp index 92a1a3a..4c81a9f 100644 --- a/framegen/include/vk/core/commandbuffer.hpp +++ b/framegen/include/vk/core/commandbuffer.hpp @@ -125,13 +125,6 @@ namespace VK::Core { [[nodiscard]] auto getState() const { return *this->state; } /// Get the Vulkan handle. [[nodiscard]] auto handle() const { return *this->commandBuffer; } - - /// Trivially copyable, moveable and destructible - CommandBuffer(const CommandBuffer&) noexcept = default; - CommandBuffer& operator=(const CommandBuffer&) noexcept = default; - CommandBuffer(CommandBuffer&&) noexcept = default; - CommandBuffer& operator=(CommandBuffer&&) noexcept = default; - ~CommandBuffer() = default; private: std::shared_ptr state; std::shared_ptr commandBuffer; diff --git a/framegen/include/vk/core/commandpool.hpp b/framegen/include/vk/core/commandpool.hpp index 883e06a..a74f668 100644 --- a/framegen/include/vk/core/commandpool.hpp +++ b/framegen/include/vk/core/commandpool.hpp @@ -28,13 +28,6 @@ namespace VK::Core { /// Get the Vulkan handle. [[nodiscard]] auto handle() const { return *this->commandPool; } - - /// Trivially copyable, moveable and destructible - CommandPool(const CommandPool&) noexcept = default; - CommandPool& operator=(const CommandPool&) noexcept = default; - CommandPool(CommandPool&&) noexcept = default; - CommandPool& operator=(CommandPool&&) noexcept = default; - ~CommandPool() = default; private: std::shared_ptr commandPool; }; diff --git a/framegen/include/vk/core/descriptorpool.hpp b/framegen/include/vk/core/descriptorpool.hpp index 0c160e7..ccf9aea 100644 --- a/framegen/include/vk/core/descriptorpool.hpp +++ b/framegen/include/vk/core/descriptorpool.hpp @@ -28,13 +28,6 @@ namespace VK::Core { /// Get the Vulkan handle. [[nodiscard]] auto handle() const { return *this->descriptorPool; } - - /// Trivially copyable, moveable and destructible - DescriptorPool(const DescriptorPool&) noexcept = default; - DescriptorPool& operator=(const DescriptorPool&) noexcept = default; - DescriptorPool(DescriptorPool&&) noexcept = default; - DescriptorPool& operator=(DescriptorPool&&) noexcept = default; - ~DescriptorPool() = default; private: std::shared_ptr descriptorPool; }; diff --git a/framegen/include/vk/core/descriptorset.hpp b/framegen/include/vk/core/descriptorset.hpp index f99939d..396600f 100644 --- a/framegen/include/vk/core/descriptorset.hpp +++ b/framegen/include/vk/core/descriptorset.hpp @@ -27,13 +27,6 @@ namespace VK::Core { /// Get the Vulkan handle. [[nodiscard]] auto handle() const { return &this->info; } - - /// Trivially copyable, moveable and destructible - ImageInfo(const ImageInfo&) noexcept = default; - ImageInfo& operator=(const ImageInfo&) noexcept = default; - ImageInfo(ImageInfo&&) noexcept = default; - ImageInfo& operator=(ImageInfo&&) noexcept = default; - ~ImageInfo() = default; private: VkDescriptorImageInfo info{}; }; @@ -48,13 +41,6 @@ namespace VK::Core { /// Get the Vulkan handle. [[nodiscard]] auto handle() const { return &this->info; } - - /// Trivially copyable, moveable and destructible - SamplerInfo(const SamplerInfo&) noexcept = default; - SamplerInfo& operator=(const SamplerInfo&) noexcept = default; - SamplerInfo(SamplerInfo&&) noexcept = default; - SamplerInfo& operator=(SamplerInfo&&) noexcept = default; - ~SamplerInfo() = default; private: VkDescriptorImageInfo info{}; }; @@ -70,13 +56,6 @@ namespace VK::Core { /// Get the Vulkan handle. [[nodiscard]] auto handle() const { return &this->info; } - - /// Trivially copyable, moveable and destructible - BufferInfo(const BufferInfo&) noexcept = default; - BufferInfo& operator=(const BufferInfo&) noexcept = default; - BufferInfo(BufferInfo&&) noexcept = default; - BufferInfo& operator=(BufferInfo&&) noexcept = default; - ~BufferInfo() = default; private: VkDescriptorBufferInfo info{}; }; @@ -108,13 +87,6 @@ namespace VK::Core { /// Get the Vulkan handle. [[nodiscard]] auto handle() const { return *this->descriptorSet; } - - /// Trivially copyable, moveable and destructible - DescriptorSet(const DescriptorSet&) noexcept = default; - DescriptorSet& operator=(const DescriptorSet&) noexcept = default; - DescriptorSet(DescriptorSet&&) noexcept = default; - DescriptorSet& operator=(DescriptorSet&&) noexcept = default; - ~DescriptorSet() = default; private: std::shared_ptr descriptorSet; }; diff --git a/framegen/include/vk/core/device.hpp b/framegen/include/vk/core/device.hpp index 9c6aee1..a58cee1 100644 --- a/framegen/include/vk/core/device.hpp +++ b/framegen/include/vk/core/device.hpp @@ -56,13 +56,6 @@ namespace VK::Core { [[nodiscard]] auto getComputeFamilyIdx() const { return this->computeFamilyIdx; } /// Check if the device supports FP16. [[nodiscard]] auto supportsFP16() const { return this->fp16; } - - // Trivially copyable, moveable and destructible - Device(const Device&) noexcept = default; - Device& operator=(const Device&) noexcept = default; - Device(Device&&) noexcept = default; - Device& operator=(Device&&) noexcept = default; - ~Device() = default; private: std::shared_ptr device; diff --git a/framegen/include/vk/core/fence.hpp b/framegen/include/vk/core/fence.hpp index 33b9e89..9fce796 100644 --- a/framegen/include/vk/core/fence.hpp +++ b/framegen/include/vk/core/fence.hpp @@ -49,13 +49,6 @@ namespace VK::Core { /// Get the Vulkan handle. [[nodiscard]] auto handle() const { return *this->fence; } - - // Trivially copyable, moveable and destructible - Fence(const Fence&) noexcept = default; - Fence& operator=(const Fence&) noexcept = default; - Fence(Fence&&) noexcept = default; - Fence& operator=(Fence&&) noexcept = default; - ~Fence() = default; private: std::shared_ptr fence; }; diff --git a/framegen/include/vk/core/image.hpp b/framegen/include/vk/core/image.hpp index 190a36c..767156a 100644 --- a/framegen/include/vk/core/image.hpp +++ b/framegen/include/vk/core/image.hpp @@ -82,13 +82,6 @@ namespace VK::Core { void setLayout(VkImageLayout layout) { *this->layout = layout; } /// Get the current layout of the image. [[nodiscard]] VkImageLayout getLayout() const { return *this->layout; } - - /// Trivially copyable, moveable and destructible - Image(const Image&) noexcept = default; - Image& operator=(const Image&) noexcept = default; - Image(Image&&) noexcept = default; - Image& operator=(Image&&) noexcept = default; - ~Image() = default; private: std::shared_ptr image; std::shared_ptr memory; diff --git a/framegen/include/vk/core/instance.hpp b/framegen/include/vk/core/instance.hpp index 594a0ab..615d2cc 100644 --- a/framegen/include/vk/core/instance.hpp +++ b/framegen/include/vk/core/instance.hpp @@ -22,13 +22,6 @@ namespace VK::Core { /// Get the Vulkan handle. [[nodiscard]] auto handle() const { return *this->instance; } - - /// Trivially copyable, moveable and destructible - Instance(const Instance&) noexcept = default; - Instance& operator=(const Instance&) noexcept = default; - Instance(Instance&&) noexcept = default; - Instance& operator=(Instance&&) noexcept = default; - ~Instance() = default; private: std::shared_ptr instance; }; diff --git a/framegen/include/vk/core/pipeline.hpp b/framegen/include/vk/core/pipeline.hpp index cbb3d25..69f5c37 100644 --- a/framegen/include/vk/core/pipeline.hpp +++ b/framegen/include/vk/core/pipeline.hpp @@ -32,13 +32,6 @@ namespace VK::Core { [[nodiscard]] auto handle() const { return *this->pipeline; } /// Get the pipeline layout. [[nodiscard]] auto getLayout() const { return *this->layout; } - - /// Trivially copyable, moveable and destructible - Pipeline(const Pipeline&) noexcept = default; - Pipeline& operator=(const Pipeline&) noexcept = default; - Pipeline(Pipeline&&) noexcept = default; - Pipeline& operator=(Pipeline&&) noexcept = default; - ~Pipeline() = default; private: std::shared_ptr pipeline; std::shared_ptr layout; diff --git a/framegen/include/vk/core/sampler.hpp b/framegen/include/vk/core/sampler.hpp index bc91a12..cad7d66 100644 --- a/framegen/include/vk/core/sampler.hpp +++ b/framegen/include/vk/core/sampler.hpp @@ -32,13 +32,6 @@ namespace VK::Core { /// Get the Vulkan handle. [[nodiscard]] auto handle() const { return *this->sampler; } - - /// Trivially copyable, moveable and destructible - Sampler(const Sampler&) noexcept = default; - Sampler& operator=(const Sampler&) noexcept = default; - Sampler(Sampler&&) noexcept = default; - Sampler& operator=(Sampler&&) noexcept = default; - ~Sampler() = default; private: std::shared_ptr sampler; }; diff --git a/framegen/include/vk/core/semaphore.hpp b/framegen/include/vk/core/semaphore.hpp index c0fa37f..a7fb20b 100644 --- a/framegen/include/vk/core/semaphore.hpp +++ b/framegen/include/vk/core/semaphore.hpp @@ -30,13 +30,6 @@ namespace VK::Core { /// Get the Vulkan handle. [[nodiscard]] auto handle() const { return *this->semaphore; } - - // Trivially copyable, moveable and destructible - Semaphore(const Semaphore&) noexcept = default; - Semaphore& operator=(const Semaphore&) noexcept = default; - Semaphore(Semaphore&&) noexcept = default; - Semaphore& operator=(Semaphore&&) noexcept = default; - ~Semaphore() = default; private: std::shared_ptr semaphore; }; diff --git a/framegen/include/vk/core/shadermodule.hpp b/framegen/include/vk/core/shadermodule.hpp index 43fffde..b738083 100644 --- a/framegen/include/vk/core/shadermodule.hpp +++ b/framegen/include/vk/core/shadermodule.hpp @@ -37,13 +37,6 @@ namespace VK::Core { [[nodiscard]] auto handle() const { return *this->shaderModule; } /// Get the descriptor set layout. [[nodiscard]] auto getLayout() const { return *this->descriptorSetLayout; } - - /// Trivially copyable, moveable and destructible - ShaderModule(const ShaderModule&) noexcept = default; - ShaderModule& operator=(const ShaderModule&) noexcept = default; - ShaderModule(ShaderModule&&) noexcept = default; - ShaderModule& operator=(ShaderModule&&) noexcept = default; - ~ShaderModule() = default; private: std::shared_ptr shaderModule; std::shared_ptr descriptorSetLayout; diff --git a/framegen/include/vk/core/timeline_semaphore.hpp b/framegen/include/vk/core/timeline_semaphore.hpp index 51d249f..1599d3c 100644 --- a/framegen/include/vk/core/timeline_semaphore.hpp +++ b/framegen/include/vk/core/timeline_semaphore.hpp @@ -53,13 +53,6 @@ namespace VK::Core { /// Get the Vulkan handle. [[nodiscard]] auto handle() const { return *this->semaphore; } - - // Trivially copyable, moveable and destructible - TimelineSemaphore(const TimelineSemaphore&) noexcept = default; - TimelineSemaphore& operator=(const TimelineSemaphore&) noexcept = default; - TimelineSemaphore(TimelineSemaphore&&) noexcept = default; - TimelineSemaphore& operator=(TimelineSemaphore&&) noexcept = default; - ~TimelineSemaphore() = default; private: std::shared_ptr semaphore; };