VkAccelerationStructureMemoryRequirementsInfoKHR(3)

# VkAccelerationStructureMemoryRequirementsInfoKHR(3) Manual Page

## Name

VkAccelerationStructureMemoryRequirementsInfoKHR - Structure specifying acceleration to query for memory requirements

Loading… please wait.

## C Specification

The `VkAccelerationStructureMemoryRequirementsInfoKHR` structure is defined as:

    // Provided by VK_KHR_ray_tracing
    typedef struct VkAccelerationStructureMemoryRequirementsInfoKHR {
        VkStructureType                                     sType;
        const void*                                         pNext;
        VkAccelerationStructureMemoryRequirementsTypeKHR    type;
        VkAccelerationStructureBuildTypeKHR                 buildType;
        VkAccelerationStructureKHR                          accelerationStructure;
    } VkAccelerationStructureMemoryRequirementsInfoKHR;

## Members

- `sType` is the type of this structure.

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

- `buildType` selects the build types whose memory requirements are being queried.

- `type` selects the type of memory requirement being queried. `VK_ACCELERATION_STRUCTURE_MEMORY_REQUIREMENTS_TYPE_OBJECT_KHR` returns the memory requirements for the object itself. `VK_ACCELERATION_STRUCTURE_MEMORY_REQUIREMENTS_TYPE_BUILD_SCRATCH_KHR` returns the memory requirements for the scratch memory when doing a build. `VK_ACCELERATION_STRUCTURE_MEMORY_REQUIREMENTS_TYPE_UPDATE_SCRATCH_KHR` returns the memory requirements for the scratch memory when doing an update.

- `accelerationStructure` is the acceleration structure to be queried for memory requirements.

## Description

Valid Usage (Implicit)

- `sType` must be `VK_STRUCTURE_TYPE_ACCELERATION_STRUCTURE_MEMORY_REQUIREMENTS_INFO_KHR`

- `pNext` must be `NULL`

- `type` must be a valid VkAccelerationStructureMemoryRequirementsTypeKHR value

- `buildType` must be a valid VkAccelerationStructureBuildTypeKHR value

- `accelerationStructure` must be a valid VkAccelerationStructureKHR handle

## See Also

VkAccelerationStructureBuildTypeKHR, VkAccelerationStructureKHR, VkAccelerationStructureMemoryRequirementsTypeKHR, VkStructureType, vkGetAccelerationStructureMemoryRequirementsKHR

## 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 (c) 2014-2020 The Khronos Group Inc.

SPDX-License-Identifier: CC-BY-4.0