vOOlkan
An object oriented approach to Vulkan
ImageView.h
Go to the documentation of this file.
1#ifndef VULKAN_IMAGEVIEW
2#define VULKAN_IMAGEVIEW
3
4#include <vulkan/vulkan.h>
5
6
7namespace Vulkan { class ImageView; class LogicalDevice; class Image; }
8
13public:
14
15 ImageView(const Image& image, const LogicalDevice& virtualGpu, VkImageAspectFlags type = VK_IMAGE_ASPECT_COLOR_BIT);
16
17 ~ImageView();
18
19 ImageView(const ImageView&) = delete;
20 ImageView(ImageView&&) = default;
21 ImageView& operator=(const ImageView&) = delete;
23
24 const VkImageView& operator+() const;
25
26private:
27 VkImageView imageView;
28 const LogicalDevice& virtualGpu;
29};
30
31#endif
An Image is an object representing what can be passed to the swapchain: the content of the image is w...
Definition: Image.h:19
Part of an image where we can actually draw.
Definition: ImageView.h:12
ImageView(ImageView &&)=default
const VkImageView & operator+() const
Definition: ImageView.cpp:44
ImageView & operator=(const ImageView &)=delete
ImageView & operator=(ImageView &&)=default
ImageView(const ImageView &)=delete
ImageView(const Image &image, const LogicalDevice &virtualGpu, VkImageAspectFlags type=VK_IMAGE_ASPECT_COLOR_BIT)
Definition: ImageView.cpp:10
~ImageView()
Definition: ImageView.cpp:37
A logical device is an abstraction of the physical GPU which we can mainly use to send commands.
Definition: LogicalDevice.h:15
Types of queue families.
Definition: Animations.h:17