Lugdunum  0.1.0
Public Member Functions | Private Attributes | List of all members
lug::Graphics::Vulkan::API::Builder::ImageView Class Reference

#include <ImageView.hpp>

Collaboration diagram for lug::Graphics::Vulkan::API::Builder::ImageView:
[legend]

Public Member Functions

 ImageView (const API::Device &device, const API::Image &image)
 
 ImageView (const ImageView &)=delete
 
 ImageView (ImageView &&)=delete
 
ImageViewoperator= (const ImageView &)=delete
 
ImageViewoperator= (ImageView &&)=delete
 
 ~ImageView ()=default
 
void setFormat (VkFormat format)
 
void setViewType (VkImageViewType viewType)
 
void setAspectFlags (VkImageAspectFlags aspectFlags)
 
void setLayerCount (uint32_t layerCount)
 
void setLevelCount (uint32_t levelCount)
 
bool build (API::ImageView &instance, VkResult *returnResult=nullptr)
 
std::unique_ptr< API::ImageViewbuild (VkResult *returnResult=nullptr)
 

Private Attributes

const API::Device_device
 
const API::Image_image
 
VkFormat _format {VK_FORMAT_UNDEFINED}
 
VkImageViewType _viewType {VK_IMAGE_VIEW_TYPE_2D}
 
VkImageAspectFlags _aspectFlags {VK_IMAGE_ASPECT_COLOR_BIT}
 
uint32_t _layerCount {1}
 
uint32_t _levelCount {1}
 

Detailed Description

Definition at line 18 of file ImageView.hpp.

Constructor & Destructor Documentation

◆ ImageView() [1/3]

lug::Graphics::Vulkan::API::Builder::ImageView::ImageView ( const API::Device device,
const API::Image image 
)

Definition at line 12 of file ImageView.cpp.

◆ ImageView() [2/3]

lug::Graphics::Vulkan::API::Builder::ImageView::ImageView ( const ImageView )
delete

◆ ImageView() [3/3]

lug::Graphics::Vulkan::API::Builder::ImageView::ImageView ( ImageView &&  )
delete

◆ ~ImageView()

lug::Graphics::Vulkan::API::Builder::ImageView::~ImageView ( )
default

Member Function Documentation

◆ operator=() [1/2]

ImageView& lug::Graphics::Vulkan::API::Builder::ImageView::operator= ( const ImageView )
delete

◆ operator=() [2/2]

ImageView& lug::Graphics::Vulkan::API::Builder::ImageView::operator= ( ImageView &&  )
delete

◆ setFormat()

void ImageView::setFormat ( VkFormat  format)
inline

Definition at line 1 of file ImageView.inl.

◆ setViewType()

void ImageView::setViewType ( VkImageViewType  viewType)
inline

Definition at line 5 of file ImageView.inl.

◆ setAspectFlags()

void ImageView::setAspectFlags ( VkImageAspectFlags  aspectFlags)
inline

Definition at line 9 of file ImageView.inl.

◆ setLayerCount()

void ImageView::setLayerCount ( uint32_t  layerCount)
inline

Definition at line 13 of file ImageView.inl.

◆ setLevelCount()

void ImageView::setLevelCount ( uint32_t  levelCount)
inline

Definition at line 17 of file ImageView.inl.

◆ build() [1/2]

bool lug::Graphics::Vulkan::API::Builder::ImageView::build ( API::ImageView instance,
VkResult *  returnResult = nullptr 
)

Definition at line 14 of file ImageView.cpp.

◆ build() [2/2]

std::unique_ptr< API::ImageView > lug::Graphics::Vulkan::API::Builder::ImageView::build ( VkResult *  returnResult = nullptr)

Definition at line 50 of file ImageView.cpp.

Member Data Documentation

◆ _device

const API::Device& lug::Graphics::Vulkan::API::Builder::ImageView::_device
private

Definition at line 42 of file ImageView.hpp.

◆ _image

const API::Image& lug::Graphics::Vulkan::API::Builder::ImageView::_image
private

Definition at line 44 of file ImageView.hpp.

◆ _format

VkFormat lug::Graphics::Vulkan::API::Builder::ImageView::_format {VK_FORMAT_UNDEFINED}
private

Definition at line 45 of file ImageView.hpp.

◆ _viewType

VkImageViewType lug::Graphics::Vulkan::API::Builder::ImageView::_viewType {VK_IMAGE_VIEW_TYPE_2D}
private

Definition at line 46 of file ImageView.hpp.

◆ _aspectFlags

VkImageAspectFlags lug::Graphics::Vulkan::API::Builder::ImageView::_aspectFlags {VK_IMAGE_ASPECT_COLOR_BIT}
private

Definition at line 47 of file ImageView.hpp.

◆ _layerCount

uint32_t lug::Graphics::Vulkan::API::Builder::ImageView::_layerCount {1}
private

Definition at line 48 of file ImageView.hpp.

◆ _levelCount

uint32_t lug::Graphics::Vulkan::API::Builder::ImageView::_levelCount {1}
private

Definition at line 49 of file ImageView.hpp.


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