| Spices::VulkanImage::VulkanImage | ( | VulkanState & | vulkanState, |
| const std::string & | name, | ||
| VkImageType | type, | ||
| uint32_t | width, | ||
| uint32_t | height, | ||
| uint32_t | layers, | ||
| VkSampleCountFlagBits | numSamples, | ||
| VkFormat | format, | ||
| VkImageTiling | tiling, | ||
| VkImageUsageFlags | usage, | ||
| VkImageCreateFlags | flags, | ||
| VkMemoryPropertyFlags | properties, | ||
| uint32_t | mipLevels ) |
@breif Constructor Function. Init class variable. Create the vkImage by specific parameters.
| [in] | vulkanState | The VulkanObject in used this frame. |
| [in] | name | Image's name. |
| [in] | type | Image's type. |
| [in] | width | Image's width. |
| [in] | height | Image's height. |
| [in] | layers | Image's layers(texture cube). |
| [in] | numSamples | Image's MSAA sample num.(8 if enable MSAA). |
| [in] | format | Image's format. |
| [in] | tiling | Image's tilling. |
| [in] | usage | Image's used stage. |
| [in] | flags | Image's used flags. |
| [in] | properties | Image's data memory requirement. |
| [in] | mipLevels | Image's mip num, if need. |
Create Image.
Create Image.
Definition at line 17 of file VulkanImage.cpp.
References m_Height, m_Layers, m_Width, VulkanImage(), and Spices::VulkanObject::VulkanObject().
Referenced by VulkanImage().