Package org.lwjgl.vulkan
Class VkExtensionProperties
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
Structure specifying an extension properties.
See Also
VkVideoCapabilitiesKHR
, VkVideoSessionCreateInfoKHR
, EnumerateDeviceExtensionProperties
, EnumerateInstanceExtensionProperties
Layout
struct VkExtensionProperties {
char extensionName()
[VK_MAX_EXTENSION_NAME_SIZE];
uint32_t specVersion()
;
}
-
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 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
ConstructorDescriptionVkExtensionProperties
(ByteBuffer container) Creates aVkExtensionProperties
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkExtensionProperties
calloc()
Returns a newVkExtensionProperties
instance allocated withmemCalloc
.static VkExtensionProperties.Buffer
calloc
(int capacity) Returns a newVkExtensionProperties.Buffer
instance allocated withmemCalloc
.static VkExtensionProperties.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newVkExtensionProperties.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkExtensionProperties
calloc
(MemoryStack stack) Returns a newVkExtensionProperties
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkExtensionProperties
Deprecated.static VkExtensionProperties.Buffer
callocStack
(int capacity) Deprecated.static VkExtensionProperties.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static VkExtensionProperties
callocStack
(MemoryStack stack) Deprecated.static VkExtensionProperties
create()
Returns a newVkExtensionProperties
instance allocated withBufferUtils
.static VkExtensionProperties.Buffer
create
(int capacity) Returns a newVkExtensionProperties.Buffer
instance allocated withBufferUtils
.static VkExtensionProperties
create
(long address) Returns a newVkExtensionProperties
instance for the specified memory address.static VkExtensionProperties.Buffer
create
(long address, int capacity) Create aVkExtensionProperties.Buffer
instance at the specified memory.static VkExtensionProperties
createSafe
(long address) static VkExtensionProperties.Buffer
createSafe
(long address, int capacity) an array ofMAX_EXTENSION_NAME_SIZE
char
containing a null-terminated UTF-8 string which is the name of the extension.an array ofMAX_EXTENSION_NAME_SIZE
char
containing a null-terminated UTF-8 string which is the name of the extension.static VkExtensionProperties
malloc()
Returns a newVkExtensionProperties
instance allocated withmemAlloc
.static VkExtensionProperties.Buffer
malloc
(int capacity) Returns a newVkExtensionProperties.Buffer
instance allocated withmemAlloc
.static VkExtensionProperties.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newVkExtensionProperties.Buffer
instance allocated on the specifiedMemoryStack
.static VkExtensionProperties
malloc
(MemoryStack stack) Returns a newVkExtensionProperties
instance allocated on the specifiedMemoryStack
.static VkExtensionProperties
Deprecated.static VkExtensionProperties.Buffer
mallocStack
(int capacity) Deprecated.static VkExtensionProperties.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static VkExtensionProperties
mallocStack
(MemoryStack stack) Deprecated.static ByteBuffer
nextensionName
(long struct) Unsafe version ofextensionName()
.static String
nextensionNameString
(long struct) Unsafe version ofextensionNameString()
.static int
nspecVersion
(long struct) Unsafe version ofspecVersion()
.int
sizeof()
Returnssizeof(struct)
.int
the version of this extension.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. -
EXTENSIONNAME
public static final int EXTENSIONNAMEThe struct member offsets. -
SPECVERSION
public static final int SPECVERSIONThe struct member offsets.
-
-
Constructor Details
-
VkExtensionProperties
Creates aVkExtensionProperties
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<VkExtensionProperties>
-
extensionName
an array ofMAX_EXTENSION_NAME_SIZE
char
containing a null-terminated UTF-8 string which is the name of the extension. -
extensionNameString
an array ofMAX_EXTENSION_NAME_SIZE
char
containing a null-terminated UTF-8 string which is the name of the extension. -
specVersion
public int specVersion()the version of this extension. It is an integer, incremented with backward compatible changes. -
malloc
Returns a newVkExtensionProperties
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkExtensionProperties
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkExtensionProperties
instance allocated withBufferUtils
. -
create
Returns a newVkExtensionProperties
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkExtensionProperties.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkExtensionProperties.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkExtensionProperties.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkExtensionProperties.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 newVkExtensionProperties
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkExtensionProperties
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkExtensionProperties.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkExtensionProperties.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nextensionName
Unsafe version ofextensionName()
. -
nextensionNameString
Unsafe version ofextensionNameString()
. -
nspecVersion
public static int nspecVersion(long struct) Unsafe version ofspecVersion()
.
-