Top Description Fields Constructors Methods
org.lwjgl.vulkan

public Class KHRGetMemoryRequirements2

extends Object
Class Inheritance
Imports
javax.annotation.*, java.nio.*, org.lwjgl.system.*

This extension provides new queries for memory requirements of images and buffers that can be easily extended by other extensions, without introducing any further entry points. The Vulkan 1.0 VkMemoryRequirements and VkSparseImageMemoryRequirements structures do not include sType and pNext members. This extension wraps them in new structures with these members, so an application can query a chain of memory requirements structures by constructing the chain and letting the implementation fill them in. A new command is added for each vkGet*MemoryRequrements command in core Vulkan 1.0.
Promotion to Vulkan 1.1

All functionality in this extension is included in core Vulkan 1.1, with the KHR suffix omitted. The original type, enum and command names are still available as aliases of the core functionality.

VK_KHR_get_memory_requirements2
Name String
VK_KHR_get_memory_requirements2
Extension Type
Device extension
Registered Extension Number
147
Revision
1
Deprecation state
Contact
Other Extension Metadata
Last Modified Date
2017-09-05
IP Status
No known IP claims.
Interactions and External Dependencies
  • Promoted to Vulkan 1.1 Core
Contributors
  • Faith Ekstrand, Intel
  • Jeff Bolz, NVIDIA
  • Jesse Hall, Google

Field Summary

Modifier and TypeField and Description
public static final String
public static final int
VK_KHR_GET_MEMORY_REQUIREMENTS_2_SPEC_VERSION

The extension specification version.

public static final int
public static final int
public static final int
public static final int
public static final int

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static void
nvkGetBufferMemoryRequirements2KHR(VkDevice device, long pInfo, long pMemoryRequirements)

Unsafe version of: GetBufferMemoryRequirements2KHR

public static void
nvkGetImageMemoryRequirements2KHR(VkDevice device, long pInfo, long pMemoryRequirements)

Unsafe version of: GetImageMemoryRequirements2KHR

public static void
nvkGetImageSparseMemoryRequirements2KHR(VkDevice device, long pInfo, long
a pointer to an integer related to the number of sparse memory requirements available or queried, as described below.
pSparseMemoryRequirementCount
,
long pSparseMemoryRequirements)

Unsafe version of: GetImageSparseMemoryRequirements2KHR

public static void
vkGetBufferMemoryRequirements2KHR(VkDevice
the logical device that owns the buffer.
device
,
VkBufferMemoryRequirementsInfo2
a pointer to a VkBufferMemoryRequirementsInfo2 structure containing parameters required for the memory requirements query.
pInfo
,
VkMemoryRequirements2
a pointer to a VkMemoryRequirements2 structure in which the memory requirements of the buffer object are returned.
pMemoryRequirements
)

See GetBufferMemoryRequirements2.

public static void
vkGetImageMemoryRequirements2KHR(VkDevice
the logical device that owns the image.
device
,
VkImageMemoryRequirementsInfo2
a pointer to a VkImageMemoryRequirementsInfo2 structure containing parameters required for the memory requirements query.
pInfo
,
VkMemoryRequirements2
a pointer to a VkMemoryRequirements2 structure in which the memory requirements of the image object are returned.
pMemoryRequirements
)

See GetImageMemoryRequirements2.

public static void
vkGetImageSparseMemoryRequirements2KHR(VkDevice
the logical device that owns the image.
device
,
VkImageSparseMemoryRequirementsInfo2
a pointer to a VkImageSparseMemoryRequirementsInfo2 structure containing parameters required for the memory requirements query.
pInfo
,
IntBuffer
a pointer to an integer related to the number of sparse memory requirements available or queried, as described below.
pSparseMemoryRequirementCount
,
VkSparseImageMemoryRequirements2.Buffer
either NULL or a pointer to an array of VkSparseImageMemoryRequirements2 structures.
pSparseMemoryRequirements
)

See GetImageSparseMemoryRequirements2.

public static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

VK_KHR_GET_MEMORY_REQUIREMENTS_2_EXTENSION_NAMEback to summary
public static final String VK_KHR_GET_MEMORY_REQUIREMENTS_2_EXTENSION_NAME

The extension name.

VK_KHR_GET_MEMORY_REQUIREMENTS_2_SPEC_VERSIONback to summary
public static final int VK_KHR_GET_MEMORY_REQUIREMENTS_2_SPEC_VERSION

The extension specification version.

VK_STRUCTURE_TYPE_BUFFER_MEMORY_REQUIREMENTS_INFO_2_KHRback to summary
public static final int VK_STRUCTURE_TYPE_BUFFER_MEMORY_REQUIREMENTS_INFO_2_KHR

Extends VkStructureType.

Enum values:
VK_STRUCTURE_TYPE_IMAGE_MEMORY_REQUIREMENTS_INFO_2_KHRback to summary
public static final int VK_STRUCTURE_TYPE_IMAGE_MEMORY_REQUIREMENTS_INFO_2_KHR

Extends VkStructureType.

Enum values:
VK_STRUCTURE_TYPE_IMAGE_SPARSE_MEMORY_REQUIREMENTS_INFO_2_KHRback to summary
public static final int VK_STRUCTURE_TYPE_IMAGE_SPARSE_MEMORY_REQUIREMENTS_INFO_2_KHR

Extends VkStructureType.

Enum values:
VK_STRUCTURE_TYPE_MEMORY_REQUIREMENTS_2_KHRback to summary
public static final int VK_STRUCTURE_TYPE_MEMORY_REQUIREMENTS_2_KHR

Extends VkStructureType.

Enum values:
VK_STRUCTURE_TYPE_SPARSE_IMAGE_MEMORY_REQUIREMENTS_2_KHRback to summary
public static final int VK_STRUCTURE_TYPE_SPARSE_IMAGE_MEMORY_REQUIREMENTS_2_KHR

Extends VkStructureType.

Enum values:

Constructor Detail

KHRGetMemoryRequirements2back to summary
protected KHRGetMemoryRequirements2()

Method Detail

nvkGetBufferMemoryRequirements2KHRback to summary
public static void nvkGetBufferMemoryRequirements2KHR(VkDevice device, long pInfo, long pMemoryRequirements)

Unsafe version of: GetBufferMemoryRequirements2KHR

nvkGetImageMemoryRequirements2KHRback to summary
public static void nvkGetImageMemoryRequirements2KHR(VkDevice device, long pInfo, long pMemoryRequirements)

Unsafe version of: GetImageMemoryRequirements2KHR

nvkGetImageSparseMemoryRequirements2KHRback to summary
public static void nvkGetImageSparseMemoryRequirements2KHR(VkDevice device, long pInfo, long pSparseMemoryRequirementCount, long pSparseMemoryRequirements)

Unsafe version of: GetImageSparseMemoryRequirements2KHR

Parameters
pSparseMemoryRequirementCount:long

a pointer to an integer related to the number of sparse memory requirements available or queried, as described below.

vkGetBufferMemoryRequirements2KHRback to summary
public static void vkGetBufferMemoryRequirements2KHR(VkDevice device, VkBufferMemoryRequirementsInfo2 pInfo, VkMemoryRequirements2 pMemoryRequirements)

See GetBufferMemoryRequirements2.

Parameters
device:VkDevice

the logical device that owns the buffer.

pInfo:VkBufferMemoryRequirementsInfo2

a pointer to a VkBufferMemoryRequirementsInfo2 structure containing parameters required for the memory requirements query.

pMemoryRequirements:VkMemoryRequirements2

a pointer to a VkMemoryRequirements2 structure in which the memory requirements of the buffer object are returned.

vkGetImageMemoryRequirements2KHRback to summary
public static void vkGetImageMemoryRequirements2KHR(VkDevice device, VkImageMemoryRequirementsInfo2 pInfo, VkMemoryRequirements2 pMemoryRequirements)

See GetImageMemoryRequirements2.

Parameters
device:VkDevice

the logical device that owns the image.

pInfo:VkImageMemoryRequirementsInfo2

a pointer to a VkImageMemoryRequirementsInfo2 structure containing parameters required for the memory requirements query.

pMemoryRequirements:VkMemoryRequirements2

a pointer to a VkMemoryRequirements2 structure in which the memory requirements of the image object are returned.

vkGetImageSparseMemoryRequirements2KHRback to summary
public static void vkGetImageSparseMemoryRequirements2KHR(VkDevice device, VkImageSparseMemoryRequirementsInfo2 pInfo, IntBuffer pSparseMemoryRequirementCount, VkSparseImageMemoryRequirements2.Buffer pSparseMemoryRequirements)

See GetImageSparseMemoryRequirements2.

Parameters
device:VkDevice

the logical device that owns the image.

pInfo:VkImageSparseMemoryRequirementsInfo2

a pointer to a VkImageSparseMemoryRequirementsInfo2 structure containing parameters required for the memory requirements query.

pSparseMemoryRequirementCount:IntBuffer

a pointer to an integer related to the number of sparse memory requirements available or queried, as described below.

pSparseMemoryRequirements:VkSparseImageMemoryRequirements2.Buffer

either NULL or a pointer to an array of VkSparseImageMemoryRequirements2 structures.

vkGetImageSparseMemoryRequirements2KHRback to summary
public static void vkGetImageSparseMemoryRequirements2KHR(VkDevice device, VkImageSparseMemoryRequirementsInfo2 pInfo, int[] pSparseMemoryRequirementCount, VkSparseImageMemoryRequirements2.Buffer pSparseMemoryRequirements)

Array version of: GetImageSparseMemoryRequirements2KHR