Package org.lwjgl.vulkan
Class VkLayerProperties
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
Structure specifying layer properties.
See Also
EnumerateDeviceLayerProperties
, EnumerateInstanceLayerProperties
Layout
struct VkLayerProperties {
char layerName()
[VK_MAX_EXTENSION_NAME_SIZE];
uint32_t specVersion()
;
uint32_t implementationVersion()
;
char description()
[VK_MAX_DESCRIPTION_SIZE];
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionVkLayerProperties
(ByteBuffer container) Creates aVkLayerProperties
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkLayerProperties
calloc()
Returns a newVkLayerProperties
instance allocated withmemCalloc
.static VkLayerProperties.Buffer
calloc
(int capacity) Returns a newVkLayerProperties.Buffer
instance allocated withmemCalloc
.static VkLayerProperties.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newVkLayerProperties.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkLayerProperties
calloc
(MemoryStack stack) Returns a newVkLayerProperties
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkLayerProperties
Deprecated.static VkLayerProperties.Buffer
callocStack
(int capacity) Deprecated.static VkLayerProperties.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static VkLayerProperties
callocStack
(MemoryStack stack) Deprecated.static VkLayerProperties
create()
Returns a newVkLayerProperties
instance allocated withBufferUtils
.static VkLayerProperties.Buffer
create
(int capacity) Returns a newVkLayerProperties.Buffer
instance allocated withBufferUtils
.static VkLayerProperties
create
(long address) Returns a newVkLayerProperties
instance for the specified memory address.static VkLayerProperties.Buffer
create
(long address, int capacity) Create aVkLayerProperties.Buffer
instance at the specified memory.static VkLayerProperties
createSafe
(long address) static VkLayerProperties.Buffer
createSafe
(long address, int capacity) an array ofMAX_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.an array ofMAX_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.int
the version of this layer.an array ofMAX_EXTENSION_NAME_SIZE
char
containing a null-terminated UTF-8 string which is the name of the layer.an array ofMAX_EXTENSION_NAME_SIZE
char
containing a null-terminated UTF-8 string which is the name of the layer.static VkLayerProperties
malloc()
Returns a newVkLayerProperties
instance allocated withmemAlloc
.static VkLayerProperties.Buffer
malloc
(int capacity) Returns a newVkLayerProperties.Buffer
instance allocated withmemAlloc
.static VkLayerProperties.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newVkLayerProperties.Buffer
instance allocated on the specifiedMemoryStack
.static VkLayerProperties
malloc
(MemoryStack stack) Returns a newVkLayerProperties
instance allocated on the specifiedMemoryStack
.static VkLayerProperties
Deprecated.static VkLayerProperties.Buffer
mallocStack
(int capacity) Deprecated.static VkLayerProperties.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static VkLayerProperties
mallocStack
(MemoryStack stack) Deprecated.static ByteBuffer
ndescription
(long struct) Unsafe version ofdescription()
.static String
ndescriptionString
(long struct) Unsafe version ofdescriptionString()
.static int
nimplementationVersion
(long struct) Unsafe version ofimplementationVersion()
.static ByteBuffer
nlayerName
(long struct) Unsafe version oflayerName()
.static String
nlayerNameString
(long struct) Unsafe version oflayerNameString()
.static int
nspecVersion
(long struct) Unsafe version ofspecVersion()
.int
sizeof()
Returnssizeof(struct)
.int
the Vulkan version the layer was written to, encoded as described in Version Numbers.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
LAYERNAME
public static final int LAYERNAMEThe struct member offsets. -
SPECVERSION
public static final int SPECVERSIONThe struct member offsets. -
IMPLEMENTATIONVERSION
public static final int IMPLEMENTATIONVERSIONThe struct member offsets. -
DESCRIPTION
public static final int DESCRIPTIONThe struct member offsets.
-
-
Constructor Details
-
VkLayerProperties
Creates aVkLayerProperties
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<VkLayerProperties>
-
layerName
an array ofMAX_EXTENSION_NAME_SIZE
char
containing a null-terminated UTF-8 string which is the name of the layer. Use this name in theppEnabledLayerNames
array passed in theVkInstanceCreateInfo
structure to enable this layer for an instance. -
layerNameString
an array ofMAX_EXTENSION_NAME_SIZE
char
containing a null-terminated UTF-8 string which is the name of the layer. Use this name in theppEnabledLayerNames
array passed in theVkInstanceCreateInfo
structure to enable this layer for an instance. -
specVersion
public int specVersion()the Vulkan version the layer was written to, encoded as described in Version Numbers. -
implementationVersion
public int implementationVersion()the version of this layer. It is an integer, increasing with backward compatible changes. -
description
an array ofMAX_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. -
descriptionString
an array ofMAX_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. -
malloc
Returns a newVkLayerProperties
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkLayerProperties
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkLayerProperties
instance allocated withBufferUtils
. -
create
Returns a newVkLayerProperties
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkLayerProperties.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkLayerProperties.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkLayerProperties.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkLayerProperties.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newVkLayerProperties
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkLayerProperties
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkLayerProperties.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkLayerProperties.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nlayerName
Unsafe version oflayerName()
. -
nlayerNameString
Unsafe version oflayerNameString()
. -
nspecVersion
public static int nspecVersion(long struct) Unsafe version ofspecVersion()
. -
nimplementationVersion
public static int nimplementationVersion(long struct) Unsafe version ofimplementationVersion()
. -
ndescription
Unsafe version ofdescription()
. -
ndescriptionString
Unsafe version ofdescriptionString()
.
-