# VkMemoryRequirements2(3) Manual Page

## Name

VkMemoryRequirements2 - Structure specifying memory requirements

Loading… please wait.

## C Specification

The `VkMemoryRequirements2` structure is defined as:

    // Provided by VK_VERSION_1_1
    typedef struct VkMemoryRequirements2 {
        VkStructureType         sType;
        void*                   pNext;
        VkMemoryRequirements    memoryRequirements;
    } VkMemoryRequirements2;

or the equivalent

    // Provided by VK_KHR_get_memory_requirements2, VK_NV_ray_tracing with VK_KHR_get_memory_requirements2 or VK_VERSION_1_1
    typedef VkMemoryRequirements2 VkMemoryRequirements2KHR;

## Members

- `sType` is a VkStructureType value identifying this structure.

- `pNext` is `NULL` or a pointer to a structure extending this structure.

- `memoryRequirements` is a VkMemoryRequirements structure describing the memory requirements of the resource.

## Description

Valid Usage (Implicit)

- VUID-VkMemoryRequirements2-sType-sType
  `sType` must be `VK_STRUCTURE_TYPE_MEMORY_REQUIREMENTS_2`

- VUID-VkMemoryRequirements2-pNext-pNext
  `pNext` must be `NULL` or a pointer to a valid instance of VkMemoryDedicatedRequirements

- VUID-VkMemoryRequirements2-sType-unique
  The `sType` value of each struct in the `pNext` chain must be unique

## See Also

VK_VERSION_1_1, VkMemoryRequirements, VkStructureType, vkGetBufferMemoryRequirements2, vkGetBufferMemoryRequirements2KHR, vkGetDeviceBufferMemoryRequirements, vkGetDeviceBufferMemoryRequirementsKHR, vkGetDeviceImageMemoryRequirements, vkGetDeviceImageMemoryRequirementsKHR, vkGetGeneratedCommandsMemoryRequirementsEXT, vkGetGeneratedCommandsMemoryRequirementsNV, vkGetImageMemoryRequirements2, vkGetImageMemoryRequirements2KHR, vkGetPipelineIndirectMemoryRequirementsNV

## 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