Structures
VkClearRect
Structure specifying a clear rectangle
The VkClearRect structure is defined as:
typedef struct VkClearRect {
VkRect2D rect;
uint32_t baseArrayLayer;
uint32_t layerCount;
} VkClearRect;
rectis the two-dimensional region to be cleared.baseArrayLayeris the first layer to be cleared.layerCountis the number of layers to clear.
The layers [baseArrayLayer, baseArrayLayer +
layerCount) counting from the base layer of the attachment image view
are cleared.