public class VkLayerProperties
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
layerName[VK_MAX_EXTENSION_NAME_SIZE] – an array of MAX_EXTENSION_NAME_SIZE char containing a null-terminated UTF-8 string which is the name of the layer. Use this name in the ppEnabledLayerNames array passed in the VkInstanceCreateInfo structure to enable this layer for an instance.specVersion – the Vulkan version the layer was written to, encoded as described in Version Numbers.implementationVersion – the version of this layer. It is an integer, increasing with backward compatible changes.description[VK_MAX_DESCRIPTION_SIZE] – an array of MAX_DESCRIPTION_SIZE char containing a null-terminated UTF-8 string which provides additional details that can be used by the application to identify the layer.
struct VkLayerProperties {
char layerName[VK_MAX_EXTENSION_NAME_SIZE];
uint32_t specVersion;
uint32_t implementationVersion;
char description[VK_MAX_DESCRIPTION_SIZE];
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkLayerProperties.Buffer
An array of
VkLayerProperties structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DESCRIPTION
The struct member offsets.
|
static int |
IMPLEMENTATIONVERSION
The struct member offsets.
|
static int |
LAYERNAME
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
SPECVERSION
The struct member offsets.
|
| Constructor and Description |
|---|
VkLayerProperties(java.nio.ByteBuffer container)
Creates a
VkLayerProperties instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkLayerProperties |
calloc()
Returns a new
VkLayerProperties instance allocated with memCalloc. |
static VkLayerProperties.Buffer |
calloc(int capacity)
Returns a new
VkLayerProperties.Buffer instance allocated with memCalloc. |
static VkLayerProperties |
callocStack()
Returns a new
VkLayerProperties instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkLayerProperties.Buffer |
callocStack(int capacity)
Returns a new
VkLayerProperties.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkLayerProperties.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkLayerProperties.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkLayerProperties |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkLayerProperties instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkLayerProperties |
create()
Returns a new
VkLayerProperties instance allocated with BufferUtils. |
static VkLayerProperties.Buffer |
create(int capacity)
Returns a new
VkLayerProperties.Buffer instance allocated with BufferUtils. |
static VkLayerProperties |
create(long address)
Returns a new
VkLayerProperties instance for the specified memory address. |
static VkLayerProperties.Buffer |
create(long address,
int capacity)
Create a
VkLayerProperties.Buffer instance at the specified memory. |
static VkLayerProperties |
createSafe(long address)
|
static VkLayerProperties.Buffer |
createSafe(long address,
int capacity)
|
java.nio.ByteBuffer |
description()
Returns a
ByteBuffer view of the description field. |
java.lang.String |
descriptionString()
Decodes the null-terminated string stored in the
description field. |
int |
implementationVersion()
Returns the value of the
implementationVersion field. |
java.nio.ByteBuffer |
layerName()
Returns a
ByteBuffer view of the layerName field. |
java.lang.String |
layerNameString()
Decodes the null-terminated string stored in the
layerName field. |
static VkLayerProperties |
malloc()
Returns a new
VkLayerProperties instance allocated with memAlloc. |
static VkLayerProperties.Buffer |
malloc(int capacity)
Returns a new
VkLayerProperties.Buffer instance allocated with memAlloc. |
static VkLayerProperties |
mallocStack()
Returns a new
VkLayerProperties instance allocated on the thread-local MemoryStack. |
static VkLayerProperties.Buffer |
mallocStack(int capacity)
Returns a new
VkLayerProperties.Buffer instance allocated on the thread-local MemoryStack. |
static VkLayerProperties.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkLayerProperties.Buffer instance allocated on the specified MemoryStack. |
static VkLayerProperties |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkLayerProperties instance allocated on the specified MemoryStack. |
static java.nio.ByteBuffer |
ndescription(long struct)
Unsafe version of
description(). |
static java.lang.String |
ndescriptionString(long struct)
Unsafe version of
descriptionString(). |
static int |
nimplementationVersion(long struct)
Unsafe version of
implementationVersion(). |
static java.nio.ByteBuffer |
nlayerName(long struct)
Unsafe version of
layerName(). |
static java.lang.String |
nlayerNameString(long struct)
Unsafe version of
layerNameString(). |
static int |
nspecVersion(long struct)
Unsafe version of
specVersion(). |
int |
sizeof() |
int |
specVersion()
Returns the value of the
specVersion field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int LAYERNAME
public static final int SPECVERSION
public static final int IMPLEMENTATIONVERSION
public static final int DESCRIPTION
public VkLayerProperties(java.nio.ByteBuffer container)
VkLayerProperties instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be
visible to the struct instance and vice versa.
The created instance holds a strong reference to the container object.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic java.nio.ByteBuffer layerName()
ByteBuffer view of the layerName field.public java.lang.String layerNameString()
layerName field.public int specVersion()
specVersion field.public int implementationVersion()
implementationVersion field.public java.nio.ByteBuffer description()
ByteBuffer view of the description field.public java.lang.String descriptionString()
description field.public static VkLayerProperties malloc()
VkLayerProperties instance allocated with memAlloc. The instance must be explicitly freed.public static VkLayerProperties calloc()
VkLayerProperties instance allocated with memCalloc. The instance must be explicitly freed.public static VkLayerProperties create()
VkLayerProperties instance allocated with BufferUtils.public static VkLayerProperties create(long address)
VkLayerProperties instance for the specified memory address.@Nullable public static VkLayerProperties createSafe(long address)
public static VkLayerProperties.Buffer malloc(int capacity)
VkLayerProperties.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkLayerProperties.Buffer calloc(int capacity)
VkLayerProperties.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkLayerProperties.Buffer create(int capacity)
VkLayerProperties.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkLayerProperties.Buffer create(long address, int capacity)
VkLayerProperties.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkLayerProperties.Buffer createSafe(long address, int capacity)
public static VkLayerProperties mallocStack()
VkLayerProperties instance allocated on the thread-local MemoryStack.public static VkLayerProperties callocStack()
VkLayerProperties instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkLayerProperties mallocStack(org.lwjgl.system.MemoryStack stack)
VkLayerProperties instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkLayerProperties callocStack(org.lwjgl.system.MemoryStack stack)
VkLayerProperties instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkLayerProperties.Buffer mallocStack(int capacity)
VkLayerProperties.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkLayerProperties.Buffer callocStack(int capacity)
VkLayerProperties.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkLayerProperties.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkLayerProperties.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkLayerProperties.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkLayerProperties.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static java.nio.ByteBuffer nlayerName(long struct)
layerName().public static java.lang.String nlayerNameString(long struct)
layerNameString().public static int nspecVersion(long struct)
specVersion().public static int nimplementationVersion(long struct)
implementationVersion().public static java.nio.ByteBuffer ndescription(long struct)
description().public static java.lang.String ndescriptionString(long struct)
descriptionString().Copyright LWJGL. All Rights Reserved. License terms.