VOX
A little voxel engine
Loading...
Searching...
No Matches
Image Class Reference

#include <Image.hpp>

Collaboration diagram for Image:
Collaboration graph

Classes

struct  CreateInfo
 

Public Member Functions

 Image ()
 
 Image (const Image &)=delete
 
Imageoperator= (const Image &)=delete
 
 Image (Image &&other) noexcept
 
Imageoperator= (Image &&other) noexcept
 
 ~Image ()
 
 Image (VkDevice device, VkPhysicalDevice physical_device, SingleTimeCommand &command_buffer, const CreateInfo &create_info)
 
void transitionLayout (VkCommandBuffer command_buffer, VkImageLayout old_layout, VkImageLayout new_layout, VkPipelineStageFlags src_stage=VK_PIPELINE_STAGE_NONE, VkPipelineStageFlags dst_stage=VK_PIPELINE_STAGE_NONE)
 
void clear ()
 

Public Attributes

VkImage image
 
VkDeviceMemory memory
 
VkImageView view
 
VkSampler sampler
 
VkFormat format
 
VkExtent2D extent2D
 
VkExtent3D extent3D
 
VkImageAspectFlags aspect_mask
 
uint32_t mip_levels
 
uint32_t array_layers
 

Constructor & Destructor Documentation

◆ Image() [1/4]

Image::Image ( )

◆ Image() [2/4]

Image::Image ( const Image )
delete

◆ Image() [3/4]

Image::Image ( Image &&  other)
noexcept

◆ ~Image()

Image::~Image ( )

◆ Image() [4/4]

Image::Image ( VkDevice  device,
VkPhysicalDevice  physical_device,
SingleTimeCommand command_buffer,
const CreateInfo create_info 
)

Member Function Documentation

◆ clear()

void Image::clear ( )

◆ operator=() [1/2]

Image & Image::operator= ( const Image )
delete

◆ operator=() [2/2]

Image & Image::operator= ( Image &&  other)
noexcept

◆ transitionLayout()

void Image::transitionLayout ( VkCommandBuffer  command_buffer,
VkImageLayout  old_layout,
VkImageLayout  new_layout,
VkPipelineStageFlags  src_stage = VK_PIPELINE_STAGE_NONE,
VkPipelineStageFlags  dst_stage = VK_PIPELINE_STAGE_NONE 
)

Member Data Documentation

◆ array_layers

uint32_t Image::array_layers

◆ aspect_mask

VkImageAspectFlags Image::aspect_mask

◆ extent2D

VkExtent2D Image::extent2D

◆ extent3D

VkExtent3D Image::extent3D

◆ format

VkFormat Image::format

◆ image

VkImage Image::image

◆ memory

VkDeviceMemory Image::memory

◆ mip_levels

uint32_t Image::mip_levels

◆ sampler

VkSampler Image::sampler

◆ view

VkImageView Image::view

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