# VkRect2D(3) Manual Page

## Name

VkRect2D - Structure specifying a two-dimensional subregion

Loading… please wait.

## C Specification

Rectangles are used to describe a specified rectangular region of pixels within an image or framebuffer. Rectangles include both an offset and an extent of the same dimensionality, as described above. Two-dimensional rectangles are defined by the structure

    // Provided by VK_VERSION_1_0
    typedef struct VkRect2D {
        VkOffset2D    offset;
        VkExtent2D    extent;
    } VkRect2D;

## Members

- `offset` is a VkOffset2D specifying the rectangle offset.

- `extent` is a VkExtent2D specifying the rectangle extent.

## Description

## See Also

VK_VERSION_1_0, VkBindImageMemoryDeviceGroupInfo, VkClearRect, VkCommandBufferInheritanceRenderPassTransformInfoQCOM, VkDeviceGroupRenderPassBeginInfo, VkDisplayPresentInfoKHR, VkExtent2D, VkMultiviewPerViewRenderAreasRenderPassBeginInfoQCOM, VkOffset2D, VkOpticalFlowExecuteInfoNV, VkPipelineDiscardRectangleStateCreateInfoEXT, VkPipelineViewportExclusiveScissorStateCreateInfoNV, VkPipelineViewportStateCreateInfo, VkRenderPassBeginInfo, VkRenderPassStripeInfoARM, VkRenderingInfo, vkCmdSetDiscardRectangleEXT, vkCmdSetExclusiveScissorNV, vkCmdSetScissor, vkCmdSetScissorWithCount, vkCmdSetScissorWithCountEXT, vkGetPhysicalDevicePresentRectanglesKHR

## Document Notes

For more information, see the Vulkan Specification

This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.

## Copyright

Copyright 2014-2024 The Khronos Group Inc.

SPDX-License-Identifier: CC-BY-4.0