Package org.lwjgl.vulkan
Class VkLayerProperties
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkLayerProperties
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkLayerProperties extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying layer properties.See Also
EnumerateDeviceLayerProperties,EnumerateInstanceLayerPropertiesLayout
struct VkLayerProperties { charlayerName()[VK_MAX_EXTENSION_NAME_SIZE]; uint32_tspecVersion(); uint32_timplementationVersion(); chardescription()[VK_MAX_DESCRIPTION_SIZE]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkLayerProperties.BufferAn array ofVkLayerPropertiesstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intDESCRIPTION
IMPLEMENTATIONVERSION
LAYERNAMEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSPECVERSIONThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkLayerProperties(java.nio.ByteBuffer container)Creates aVkLayerPropertiesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static VkLayerPropertiescalloc()Returns a newVkLayerPropertiesinstance allocated withmemCalloc.static VkLayerProperties.Buffercalloc(int capacity)Returns a newVkLayerProperties.Bufferinstance allocated withmemCalloc.static VkLayerProperties.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkLayerProperties.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkLayerPropertiescalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkLayerPropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkLayerPropertiescallocStack()Deprecated.static VkLayerProperties.BuffercallocStack(int capacity)Deprecated.static VkLayerProperties.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkLayerPropertiescallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkLayerPropertiescreate()Returns a newVkLayerPropertiesinstance allocated withBufferUtils.static VkLayerProperties.Buffercreate(int capacity)Returns a newVkLayerProperties.Bufferinstance allocated withBufferUtils.static VkLayerPropertiescreate(long address)Returns a newVkLayerPropertiesinstance for the specified memory address.static VkLayerProperties.Buffercreate(long address, int capacity)Create aVkLayerProperties.Bufferinstance at the specified memory.static VkLayerPropertiescreateSafe(long address)static VkLayerProperties.BuffercreateSafe(long address, int capacity)java.nio.ByteBufferdescription()an array ofMAX_DESCRIPTION_SIZEcharcontaining a null-terminated UTF-8 string which provides additional details that can be used by the application to identify the layer.java.lang.StringdescriptionString()an array ofMAX_DESCRIPTION_SIZEcharcontaining a null-terminated UTF-8 string which provides additional details that can be used by the application to identify the layer.intimplementationVersion()the version of this layer.java.nio.ByteBufferlayerName()an array ofMAX_EXTENSION_NAME_SIZEcharcontaining a null-terminated UTF-8 string which is the name of the layer.java.lang.StringlayerNameString()an array ofMAX_EXTENSION_NAME_SIZEcharcontaining a null-terminated UTF-8 string which is the name of the layer.static VkLayerPropertiesmalloc()Returns a newVkLayerPropertiesinstance allocated withmemAlloc.static VkLayerProperties.Buffermalloc(int capacity)Returns a newVkLayerProperties.Bufferinstance allocated withmemAlloc.static VkLayerProperties.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkLayerProperties.Bufferinstance allocated on the specifiedMemoryStack.static VkLayerPropertiesmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkLayerPropertiesinstance allocated on the specifiedMemoryStack.static VkLayerPropertiesmallocStack()Deprecated.static VkLayerProperties.BuffermallocStack(int capacity)Deprecated.static VkLayerProperties.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkLayerPropertiesmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static java.nio.ByteBufferndescription(long struct)Unsafe version ofdescription().static java.lang.StringndescriptionString(long struct)Unsafe version ofdescriptionString().static intnimplementationVersion(long struct)Unsafe version ofimplementationVersion().static java.nio.ByteBuffernlayerName(long struct)Unsafe version oflayerName().static java.lang.StringnlayerNameString(long struct)Unsafe version oflayerNameString().static intnspecVersion(long struct)Unsafe version ofspecVersion().intsizeof()intspecVersion()the Vulkan version the layer was written to, encoded as described in Version Numbers.
-
-
-
Constructor Detail
-
VkLayerProperties
public VkLayerProperties(java.nio.ByteBuffer container)
Creates aVkLayerPropertiesinstance at the current position of the specifiedByteBuffercontainer. 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
layerName, layerNameString
public java.nio.ByteBuffer layerName() public java.lang.String layerNameString()
an array ofMAX_EXTENSION_NAME_SIZEcharcontaining a null-terminated UTF-8 string which is the name of the layer. Use this name in theppEnabledLayerNamesarray passed in theVkInstanceCreateInfostructure 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, descriptionString
public java.nio.ByteBuffer description() public java.lang.String descriptionString()
an array ofMAX_DESCRIPTION_SIZEcharcontaining a null-terminated UTF-8 string which provides additional details that can be used by the application to identify the layer.
-
malloc
public static VkLayerProperties malloc()
Returns a newVkLayerPropertiesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkLayerProperties calloc()
Returns a newVkLayerPropertiesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkLayerProperties create()
Returns a newVkLayerPropertiesinstance allocated withBufferUtils.
-
create
public static VkLayerProperties create(long address)
Returns a newVkLayerPropertiesinstance for the specified memory address.
-
createSafe
@Nullable public static VkLayerProperties createSafe(long address)
-
malloc
public static VkLayerProperties.Buffer malloc(int capacity)
Returns a newVkLayerProperties.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkLayerProperties.Buffer calloc(int capacity)
Returns a newVkLayerProperties.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkLayerProperties.Buffer create(int capacity)
Returns a newVkLayerProperties.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkLayerProperties.Buffer create(long address, int capacity)
Create aVkLayerProperties.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkLayerProperties.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkLayerProperties mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkLayerProperties callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkLayerProperties mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkLayerProperties callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkLayerProperties.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkLayerProperties.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkLayerProperties.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkLayerProperties.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkLayerProperties malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkLayerPropertiesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkLayerProperties calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkLayerPropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkLayerProperties.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkLayerProperties.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkLayerProperties.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkLayerProperties.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nlayerName
public static java.nio.ByteBuffer nlayerName(long struct)
Unsafe version oflayerName().
-
nlayerNameString
public static java.lang.String nlayerNameString(long struct)
Unsafe version oflayerNameString().
-
nspecVersion
public static int nspecVersion(long struct)
Unsafe version ofspecVersion().
-
nimplementationVersion
public static int nimplementationVersion(long struct)
Unsafe version ofimplementationVersion().
-
ndescription
public static java.nio.ByteBuffer ndescription(long struct)
Unsafe version ofdescription().
-
ndescriptionString
public static java.lang.String ndescriptionString(long struct)
Unsafe version ofdescriptionString().
-
-