public class KHRGetPhysicalDeviceProperties2
extends java.lang.Object
sType/pNext members. This extension wraps them in new structures with sType/pNext members, so an application can query a chain of feature/limit/formatproperty structures by constructing the chain and letting the implementation fill them in. A new command is added for each vkGetPhysicalDevice* command in core Vulkan 1.0. The new feature structure (and a chain of extension structures) can also be passed in to device creation to enable features.
This extension also allows applications to use the physical-device components of device extensions before CreateDevice is called.
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.
// Get features with a hypothetical future extension.
VkHypotheticalExtensionFeaturesKHR hypotheticalFeatures =
{
VK_STRUCTURE_TYPE_HYPOTHETICAL_FEATURES_KHR, // sType
NULL, // pNext
};
VkPhysicalDeviceFeatures2KHR features =
{
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2_KHR, // sType
&hypotheticalFeatures, // pNext
};
// After this call, features and hypotheticalFeatures have been filled out.
vkGetPhysicalDeviceFeatures2KHR(physicalDevice, &features);
// Properties/limits can be chained and queried similarly.
// Enable some features:
VkHypotheticalExtensionFeaturesKHR enabledHypotheticalFeatures =
{
VK_STRUCTURE_TYPE_HYPOTHETICAL_FEATURES_KHR, // sType
NULL, // pNext
};
VkPhysicalDeviceFeatures2KHR enabledFeatures =
{
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2_KHR, // sType
&enabledHypotheticalFeatures, // pNext
};
enabledFeatures.features.xyz = VK_TRUE;
enabledHypotheticalFeatures.abc = VK_TRUE;
VkDeviceCreateInfo deviceCreateInfo =
{
VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO, // sType
&enabledFeatures, // pNext
...
NULL, // pEnabledFeatures
}
VkDevice device;
vkCreateDevice(physicalDevice, &deviceCreateInfo, NULL, &device);
VK_KHR_get_physical_device_properties2| Modifier and Type | Method and Description |
|---|---|
static void |
nvkGetPhysicalDeviceFeatures2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
long pFeatures)
Unsafe version of:
GetPhysicalDeviceFeatures2KHR |
static void |
nvkGetPhysicalDeviceFormatProperties2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
int format,
long pFormatProperties)
Unsafe version of:
GetPhysicalDeviceFormatProperties2KHR |
static int |
nvkGetPhysicalDeviceImageFormatProperties2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
long pImageFormatInfo,
long pImageFormatProperties)
Unsafe version of:
GetPhysicalDeviceImageFormatProperties2KHR |
static void |
nvkGetPhysicalDeviceMemoryProperties2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
long pMemoryProperties)
Unsafe version of:
GetPhysicalDeviceMemoryProperties2KHR |
static void |
nvkGetPhysicalDeviceProperties2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
long pProperties)
Unsafe version of:
GetPhysicalDeviceProperties2KHR |
static void |
nvkGetPhysicalDeviceQueueFamilyProperties2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
long pQueueFamilyPropertyCount,
long pQueueFamilyProperties)
Unsafe version of:
GetPhysicalDeviceQueueFamilyProperties2KHR |
static void |
nvkGetPhysicalDeviceSparseImageFormatProperties2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
long pFormatInfo,
long pPropertyCount,
long pProperties)
Unsafe version of:
GetPhysicalDeviceSparseImageFormatProperties2KHR |
static void |
vkGetPhysicalDeviceFeatures2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
VkPhysicalDeviceFeatures2 pFeatures)
|
static void |
vkGetPhysicalDeviceFormatProperties2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
int format,
VkFormatProperties2 pFormatProperties)
|
static int |
vkGetPhysicalDeviceImageFormatProperties2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
VkPhysicalDeviceImageFormatInfo2 pImageFormatInfo,
VkImageFormatProperties2 pImageFormatProperties)
|
static void |
vkGetPhysicalDeviceMemoryProperties2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
VkPhysicalDeviceMemoryProperties2 pMemoryProperties)
|
static void |
vkGetPhysicalDeviceProperties2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
VkPhysicalDeviceProperties2 pProperties)
|
static void |
vkGetPhysicalDeviceQueueFamilyProperties2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
int[] pQueueFamilyPropertyCount,
VkQueueFamilyProperties2.Buffer pQueueFamilyProperties)
Array version of:
GetPhysicalDeviceQueueFamilyProperties2KHR |
static void |
vkGetPhysicalDeviceQueueFamilyProperties2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
java.nio.IntBuffer pQueueFamilyPropertyCount,
VkQueueFamilyProperties2.Buffer pQueueFamilyProperties)
|
static void |
vkGetPhysicalDeviceSparseImageFormatProperties2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
VkPhysicalDeviceSparseImageFormatInfo2 pFormatInfo,
int[] pPropertyCount,
VkSparseImageFormatProperties2.Buffer pProperties)
Array version of:
GetPhysicalDeviceSparseImageFormatProperties2KHR |
static void |
vkGetPhysicalDeviceSparseImageFormatProperties2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
VkPhysicalDeviceSparseImageFormatInfo2 pFormatInfo,
java.nio.IntBuffer pPropertyCount,
VkSparseImageFormatProperties2.Buffer pProperties)
|
public static final int VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_SPEC_VERSION
public static final java.lang.String VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME
public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2_KHR
VkStructureType.
STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2_KHRSTRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2_KHRSTRUCTURE_TYPE_FORMAT_PROPERTIES_2_KHRSTRUCTURE_TYPE_IMAGE_FORMAT_PROPERTIES_2_KHRSTRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_FORMAT_INFO_2_KHRSTRUCTURE_TYPE_QUEUE_FAMILY_PROPERTIES_2_KHRSTRUCTURE_TYPE_PHYSICAL_DEVICE_MEMORY_PROPERTIES_2_KHRSTRUCTURE_TYPE_SPARSE_IMAGE_FORMAT_PROPERTIES_2_KHRSTRUCTURE_TYPE_PHYSICAL_DEVICE_SPARSE_IMAGE_FORMAT_INFO_2_KHRpublic static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2_KHR
VkStructureType.
STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2_KHRSTRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2_KHRSTRUCTURE_TYPE_FORMAT_PROPERTIES_2_KHRSTRUCTURE_TYPE_IMAGE_FORMAT_PROPERTIES_2_KHRSTRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_FORMAT_INFO_2_KHRSTRUCTURE_TYPE_QUEUE_FAMILY_PROPERTIES_2_KHRSTRUCTURE_TYPE_PHYSICAL_DEVICE_MEMORY_PROPERTIES_2_KHRSTRUCTURE_TYPE_SPARSE_IMAGE_FORMAT_PROPERTIES_2_KHRSTRUCTURE_TYPE_PHYSICAL_DEVICE_SPARSE_IMAGE_FORMAT_INFO_2_KHRpublic static final int VK_STRUCTURE_TYPE_FORMAT_PROPERTIES_2_KHR
VkStructureType.
STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2_KHRSTRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2_KHRSTRUCTURE_TYPE_FORMAT_PROPERTIES_2_KHRSTRUCTURE_TYPE_IMAGE_FORMAT_PROPERTIES_2_KHRSTRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_FORMAT_INFO_2_KHRSTRUCTURE_TYPE_QUEUE_FAMILY_PROPERTIES_2_KHRSTRUCTURE_TYPE_PHYSICAL_DEVICE_MEMORY_PROPERTIES_2_KHRSTRUCTURE_TYPE_SPARSE_IMAGE_FORMAT_PROPERTIES_2_KHRSTRUCTURE_TYPE_PHYSICAL_DEVICE_SPARSE_IMAGE_FORMAT_INFO_2_KHRpublic static final int VK_STRUCTURE_TYPE_IMAGE_FORMAT_PROPERTIES_2_KHR
VkStructureType.
STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2_KHRSTRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2_KHRSTRUCTURE_TYPE_FORMAT_PROPERTIES_2_KHRSTRUCTURE_TYPE_IMAGE_FORMAT_PROPERTIES_2_KHRSTRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_FORMAT_INFO_2_KHRSTRUCTURE_TYPE_QUEUE_FAMILY_PROPERTIES_2_KHRSTRUCTURE_TYPE_PHYSICAL_DEVICE_MEMORY_PROPERTIES_2_KHRSTRUCTURE_TYPE_SPARSE_IMAGE_FORMAT_PROPERTIES_2_KHRSTRUCTURE_TYPE_PHYSICAL_DEVICE_SPARSE_IMAGE_FORMAT_INFO_2_KHRpublic static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_FORMAT_INFO_2_KHR
VkStructureType.
STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2_KHRSTRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2_KHRSTRUCTURE_TYPE_FORMAT_PROPERTIES_2_KHRSTRUCTURE_TYPE_IMAGE_FORMAT_PROPERTIES_2_KHRSTRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_FORMAT_INFO_2_KHRSTRUCTURE_TYPE_QUEUE_FAMILY_PROPERTIES_2_KHRSTRUCTURE_TYPE_PHYSICAL_DEVICE_MEMORY_PROPERTIES_2_KHRSTRUCTURE_TYPE_SPARSE_IMAGE_FORMAT_PROPERTIES_2_KHRSTRUCTURE_TYPE_PHYSICAL_DEVICE_SPARSE_IMAGE_FORMAT_INFO_2_KHRpublic static final int VK_STRUCTURE_TYPE_QUEUE_FAMILY_PROPERTIES_2_KHR
VkStructureType.
STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2_KHRSTRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2_KHRSTRUCTURE_TYPE_FORMAT_PROPERTIES_2_KHRSTRUCTURE_TYPE_IMAGE_FORMAT_PROPERTIES_2_KHRSTRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_FORMAT_INFO_2_KHRSTRUCTURE_TYPE_QUEUE_FAMILY_PROPERTIES_2_KHRSTRUCTURE_TYPE_PHYSICAL_DEVICE_MEMORY_PROPERTIES_2_KHRSTRUCTURE_TYPE_SPARSE_IMAGE_FORMAT_PROPERTIES_2_KHRSTRUCTURE_TYPE_PHYSICAL_DEVICE_SPARSE_IMAGE_FORMAT_INFO_2_KHRpublic static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MEMORY_PROPERTIES_2_KHR
VkStructureType.
STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2_KHRSTRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2_KHRSTRUCTURE_TYPE_FORMAT_PROPERTIES_2_KHRSTRUCTURE_TYPE_IMAGE_FORMAT_PROPERTIES_2_KHRSTRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_FORMAT_INFO_2_KHRSTRUCTURE_TYPE_QUEUE_FAMILY_PROPERTIES_2_KHRSTRUCTURE_TYPE_PHYSICAL_DEVICE_MEMORY_PROPERTIES_2_KHRSTRUCTURE_TYPE_SPARSE_IMAGE_FORMAT_PROPERTIES_2_KHRSTRUCTURE_TYPE_PHYSICAL_DEVICE_SPARSE_IMAGE_FORMAT_INFO_2_KHRpublic static final int VK_STRUCTURE_TYPE_SPARSE_IMAGE_FORMAT_PROPERTIES_2_KHR
VkStructureType.
STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2_KHRSTRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2_KHRSTRUCTURE_TYPE_FORMAT_PROPERTIES_2_KHRSTRUCTURE_TYPE_IMAGE_FORMAT_PROPERTIES_2_KHRSTRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_FORMAT_INFO_2_KHRSTRUCTURE_TYPE_QUEUE_FAMILY_PROPERTIES_2_KHRSTRUCTURE_TYPE_PHYSICAL_DEVICE_MEMORY_PROPERTIES_2_KHRSTRUCTURE_TYPE_SPARSE_IMAGE_FORMAT_PROPERTIES_2_KHRSTRUCTURE_TYPE_PHYSICAL_DEVICE_SPARSE_IMAGE_FORMAT_INFO_2_KHRpublic static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SPARSE_IMAGE_FORMAT_INFO_2_KHR
VkStructureType.
STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2_KHRSTRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2_KHRSTRUCTURE_TYPE_FORMAT_PROPERTIES_2_KHRSTRUCTURE_TYPE_IMAGE_FORMAT_PROPERTIES_2_KHRSTRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_FORMAT_INFO_2_KHRSTRUCTURE_TYPE_QUEUE_FAMILY_PROPERTIES_2_KHRSTRUCTURE_TYPE_PHYSICAL_DEVICE_MEMORY_PROPERTIES_2_KHRSTRUCTURE_TYPE_SPARSE_IMAGE_FORMAT_PROPERTIES_2_KHRSTRUCTURE_TYPE_PHYSICAL_DEVICE_SPARSE_IMAGE_FORMAT_INFO_2_KHRpublic static void nvkGetPhysicalDeviceFeatures2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
long pFeatures)
GetPhysicalDeviceFeatures2KHRpublic static void vkGetPhysicalDeviceFeatures2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
VkPhysicalDeviceFeatures2 pFeatures)
physicalDevice - the physical device from which to query the supported features.pFeatures - a pointer to a VkPhysicalDeviceFeatures2 structure in which the physical device features are returned.public static void nvkGetPhysicalDeviceProperties2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
long pProperties)
GetPhysicalDeviceProperties2KHRpublic static void vkGetPhysicalDeviceProperties2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
VkPhysicalDeviceProperties2 pProperties)
physicalDevice - the handle to the physical device whose properties will be queried.pProperties - a pointer to a VkPhysicalDeviceProperties2 structure in which properties are returned.public static void nvkGetPhysicalDeviceFormatProperties2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
int format,
long pFormatProperties)
GetPhysicalDeviceFormatProperties2KHRpublic static void vkGetPhysicalDeviceFormatProperties2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
int format,
VkFormatProperties2 pFormatProperties)
physicalDevice - the physical device from which to query the format properties.format - the format whose properties are queried.pFormatProperties - a pointer to a VkFormatProperties2 structure in which physical device properties for format are returned.public static int nvkGetPhysicalDeviceImageFormatProperties2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
long pImageFormatInfo,
long pImageFormatProperties)
GetPhysicalDeviceImageFormatProperties2KHRpublic static int vkGetPhysicalDeviceImageFormatProperties2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
VkPhysicalDeviceImageFormatInfo2 pImageFormatInfo,
VkImageFormatProperties2 pImageFormatProperties)
physicalDevice - the physical device from which to query the image capabilities.pImageFormatInfo - a pointer to a VkPhysicalDeviceImageFormatInfo2 structure describing the parameters that would be consumed by CreateImage.pImageFormatProperties - a pointer to a VkImageFormatProperties2 structure in which capabilities are returned.public static void nvkGetPhysicalDeviceQueueFamilyProperties2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
long pQueueFamilyPropertyCount,
long pQueueFamilyProperties)
GetPhysicalDeviceQueueFamilyProperties2KHRpQueueFamilyPropertyCount - a pointer to an integer related to the number of queue families available or queried, as described in GetPhysicalDeviceQueueFamilyProperties.public static void vkGetPhysicalDeviceQueueFamilyProperties2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
java.nio.IntBuffer pQueueFamilyPropertyCount,
@Nullable
VkQueueFamilyProperties2.Buffer pQueueFamilyProperties)
physicalDevice - the handle to the physical device whose properties will be queried.pQueueFamilyPropertyCount - a pointer to an integer related to the number of queue families available or queried, as described in GetPhysicalDeviceQueueFamilyProperties.pQueueFamilyProperties - either NULL or a pointer to an array of VkQueueFamilyProperties2 structures.public static void nvkGetPhysicalDeviceMemoryProperties2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
long pMemoryProperties)
GetPhysicalDeviceMemoryProperties2KHRpublic static void vkGetPhysicalDeviceMemoryProperties2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
VkPhysicalDeviceMemoryProperties2 pMemoryProperties)
physicalDevice - the handle to the device to query.pMemoryProperties - a pointer to a VkPhysicalDeviceMemoryProperties2 structure in which the properties are returned.public static void nvkGetPhysicalDeviceSparseImageFormatProperties2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
long pFormatInfo,
long pPropertyCount,
long pProperties)
GetPhysicalDeviceSparseImageFormatProperties2KHRpPropertyCount - a pointer to an integer related to the number of sparse format properties available or queried, as described below.public static void vkGetPhysicalDeviceSparseImageFormatProperties2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
VkPhysicalDeviceSparseImageFormatInfo2 pFormatInfo,
java.nio.IntBuffer pPropertyCount,
@Nullable
VkSparseImageFormatProperties2.Buffer pProperties)
physicalDevice - the physical device from which to query the sparse image capabilities.pFormatInfo - a pointer to a VkPhysicalDeviceSparseImageFormatInfo2 structure containing input parameters to the command.pPropertyCount - a pointer to an integer related to the number of sparse format properties available or queried, as described below.pProperties - either NULL or a pointer to an array of VkSparseImageFormatProperties2 structures.public static void vkGetPhysicalDeviceQueueFamilyProperties2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
int[] pQueueFamilyPropertyCount,
@Nullable
VkQueueFamilyProperties2.Buffer pQueueFamilyProperties)
GetPhysicalDeviceQueueFamilyProperties2KHRpublic static void vkGetPhysicalDeviceSparseImageFormatProperties2KHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
VkPhysicalDeviceSparseImageFormatInfo2 pFormatInfo,
int[] pPropertyCount,
@Nullable
VkSparseImageFormatProperties2.Buffer pProperties)
GetPhysicalDeviceSparseImageFormatProperties2KHRCopyright LWJGL. All Rights Reserved. License terms.