Package org.lwjgl.vulkan
Class VkLayerProperties
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
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 ClassesNested 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
FieldsModifier 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
ConstructorsConstructorDescriptionVkLayerProperties
(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 @Nullable VkLayerProperties
createSafe
(long address) static @Nullable VkLayerProperties.Buffer
createSafe
(long address, int capacity) int
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
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
- Returns:
- a
ByteBuffer
view of thelayerName
field.
-
layerNameString
- Returns:
- the null-terminated string stored in the
layerName
field.
-
specVersion
public int specVersion()- Returns:
- the value of the
specVersion
field.
-
implementationVersion
public int implementationVersion()- Returns:
- the value of the
implementationVersion
field.
-
description
- Returns:
- a
ByteBuffer
view of thedescription
field.
-
descriptionString
- Returns:
- the null-terminated string stored in the
description
field.
-
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()
.
-