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;
  • rect is the two-dimensional region to be cleared.
  • baseArrayLayer is the first layer to be cleared.
  • layerCount is the number of layers to clear.

The layers [baseArrayLayer, baseArrayLayer + layerCount) counting from the base layer of the attachment image view are cleared.