![]() |
VPP
0.7
A high-level modern C++ API for Vulkan
|
A template containing image attributes inside C++ type. More...
#include <vppImage.hpp>
A template containing image attributes inside C++ type.
Advanced image usage in VPP (e.g. in shader code) requires that certain image attributes are known at compile time. This template allows to encode these attributes. This is the first template you should typedef
in order to make your custom image class.
FormatT | Instance of format< ... > template specifying the format. |
PURPOSE | Purpose of the image. Usually RENDER. |
TYPE | Type of the image. This determines number of dimensions. |
USAGE | Allowed usage of the image. A bitwise sum of Img::EUsageFlags values. |
TILING | Image tiling. Usually VK_IMAGE_TILING_OPTIMAL. |
MULTISAMPLING | Multisampling mode (MSAA). |
MIPMAPPED | Whether the image may contain multiple mip-maps. |
ARRAYED | Whether the image may contain multiple array levels. |
An example: