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.Member documentation
layerName[VK_MAX_EXTENSION_NAME_SIZE]– a null-terminated UTF-8 string specifying the name of the layer. Use this name in theppEnabledLayerNamesarray passed in theVkInstanceCreateInfostructure 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]– a null-terminated UTF-8 string providing additional details that can be used by the application to identify the layer.
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 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 Modifier and Type Method Description static VkLayerPropertiescalloc()Returns a newVkLayerPropertiesinstance allocated withmemCalloc.static VkLayerProperties.Buffercalloc(int capacity)Returns a newVkLayerProperties.Bufferinstance allocated withmemCalloc.static VkLayerPropertiescallocStack()Returns a newVkLayerPropertiesinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkLayerProperties.BuffercallocStack(int capacity)Returns a newVkLayerProperties.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkLayerProperties.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkLayerProperties.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkLayerPropertiescallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkLayerPropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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()Returns aByteBufferview of thedescriptionfield.java.lang.StringdescriptionString()Decodes the null-terminated string stored in thedescriptionfield.intimplementationVersion()Returns the value of theimplementationVersionfield.java.nio.ByteBufferlayerName()Returns aByteBufferview of thelayerNamefield.java.lang.StringlayerNameString()Decodes the null-terminated string stored in thelayerNamefield.static VkLayerPropertiesmalloc()Returns a newVkLayerPropertiesinstance allocated withmemAlloc.static VkLayerProperties.Buffermalloc(int capacity)Returns a newVkLayerProperties.Bufferinstance allocated withmemAlloc.static VkLayerPropertiesmallocStack()Returns a newVkLayerPropertiesinstance allocated on the thread-localMemoryStack.static VkLayerProperties.BuffermallocStack(int capacity)Returns a newVkLayerProperties.Bufferinstance allocated on the thread-localMemoryStack.static VkLayerProperties.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkLayerProperties.Bufferinstance allocated on the specifiedMemoryStack.static VkLayerPropertiesmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkLayerPropertiesinstance allocated on the specifiedMemoryStack.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()Returns the value of thespecVersionfield.
-
-
-
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
public java.nio.ByteBuffer layerName()
Returns aByteBufferview of thelayerNamefield.
-
layerNameString
public java.lang.String layerNameString()
Decodes the null-terminated string stored in thelayerNamefield.
-
specVersion
public int specVersion()
Returns the value of thespecVersionfield.
-
implementationVersion
public int implementationVersion()
Returns the value of theimplementationVersionfield.
-
description
public java.nio.ByteBuffer description()
Returns aByteBufferview of thedescriptionfield.
-
descriptionString
public java.lang.String descriptionString()
Decodes the null-terminated string stored in thedescriptionfield.
-
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
public static VkLayerProperties mallocStack()
Returns a newVkLayerPropertiesinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkLayerProperties callocStack()
Returns a newVkLayerPropertiesinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkLayerProperties mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkLayerPropertiesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkLayerProperties callocStack(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
-
mallocStack
public static VkLayerProperties.Buffer mallocStack(int capacity)
Returns a newVkLayerProperties.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkLayerProperties.Buffer callocStack(int capacity)
Returns a newVkLayerProperties.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkLayerProperties.Buffer mallocStack(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
-
callocStack
public static VkLayerProperties.Buffer callocStack(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().
-
-