vOOlkan
An object oriented approach to Vulkan
Vulkan::DepthImage Class Reference

#include <DepthImage.h>

Inheritance diagram for Vulkan::DepthImage:
Vulkan::Image

Public Member Functions

 DepthImage (const LogicalDevice &virtualGpu, const PhysicalDevice &realGpu, std::pair< unsigned int, unsigned int > resolution)
 
 DepthImage (const DepthImage &)=delete
 
DepthImageoperator= (const DepthImage &)=delete
 
 DepthImage (DepthImage &&)=default
 
DepthImageoperator= (DepthImage &&movedFrom)=default
 
 ~DepthImage ()=default
 
- Public Member Functions inherited from Vulkan::Image
 Image (const VkImage &image, const LogicalDevice &virtualGpu, VkFormat format, std::pair< unsigned int, unsigned int > resolution)
 
 Image (const Image &)=delete
 
Imageoperator= (const Image &)=delete
 
 Image (Image &&) noexcept
 
Imageoperator= (Image &&) noexcept
 
 ~Image ()
 
const VkImage & operator+ () const
 
VkFormat getFormat () const
 Returns the format of the image, which is the same format of all the images in the swapchain of this image. More...
 
const ImageViewgenerateImageView (std::string tag, const LogicalDevice &virtualGpu, VkImageAspectFlags type=VK_IMAGE_ASPECT_COLOR_BIT)
 Creates a new image view for this image, and adds it to the array of image views of this image, on last position. More...
 
void eliminateImageView (std::string tag)
 Eliminates the specified image view. More...
 
const ImageViewoperator[] (std::string tag) const
 Returns the image view associated with the tag. More...
 
const std::map< std::string, ImageView > & getImageViews () const
 Returns all the image views of this image. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Vulkan::Image
 Image ()
 
template<std::same_as< VkMemoryPropertyFlagBits >... P>
 Image (const LogicalDevice &virtualGpu, const PhysicalDevice &realGpu, VkFormat format, std::pair< unsigned int, unsigned int > resolution, VkImageTiling tiling, VkImageUsageFlags usage, P... memoryProperties)
 
- Protected Attributes inherited from Vulkan::Image
VkImage image
 
VkFormat format
 
VkImageLayout layout
 
std::pair< unsigned int, unsigned int > resolution
 
std::map< std::string, ImageViewviews
 
VkDeviceMemory allocatedMemory
 
LogicalDevice const * virtualGpu
 
bool isSwapchainImage
 

Constructor & Destructor Documentation

◆ DepthImage() [1/3]

Vulkan::DepthImage::DepthImage ( const LogicalDevice virtualGpu,
const PhysicalDevice realGpu,
std::pair< unsigned int, unsigned int >  resolution 
)
inline

◆ DepthImage() [2/3]

Vulkan::DepthImage::DepthImage ( const DepthImage )
delete

◆ DepthImage() [3/3]

Vulkan::DepthImage::DepthImage ( DepthImage &&  )
default

◆ ~DepthImage()

Vulkan::DepthImage::~DepthImage ( )
default

Member Function Documentation

◆ operator=() [1/2]

DepthImage & Vulkan::DepthImage::operator= ( const DepthImage )
delete

◆ operator=() [2/2]

DepthImage & Vulkan::DepthImage::operator= ( DepthImage &&  movedFrom)
default

The documentation for this class was generated from the following file: