Class VkLayerProperties

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • LAYERNAME, SPECVERSION, IMPLEMENTATIONVERSION, DESCRIPTION

        The struct member offsets.
    • Constructor Detail

      • VkLayerProperties

        public VkLayerProperties​(java.nio.ByteBuffer container)
        Creates a VkLayerProperties instance at the current position of the specified ByteBuffer 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 Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • layerName, layerNameString

        public java.nio.ByteBuffer layerName()
        
        public java.lang.String layerNameString()
        
        an array of MAX_EXTENSION_NAME_SIZE char containing a null-terminated UTF-8 string which is the name of the layer. Use this name in the ppEnabledLayerNames array passed in the VkInstanceCreateInfo 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, descriptionString

        public java.nio.ByteBuffer description()
        
        public java.lang.String descriptionString()
        
        an array of MAX_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

        public static VkLayerProperties malloc()
        Returns a new VkLayerProperties instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static VkLayerProperties calloc()
        Returns a new VkLayerProperties instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static VkLayerProperties create()
        Returns a new VkLayerProperties instance allocated with BufferUtils.
      • create

        public static VkLayerProperties create​(long address)
        Returns a new VkLayerProperties instance for the specified memory address.
      • createSafe

        @Nullable
        public static VkLayerProperties createSafe​(long address)
        Like create, but returns null if address is NULL.
      • createSafe

        @Nullable
        public static VkLayerProperties.Buffer createSafe​(long address,
                                                          int capacity)
        Like create, but returns null if address is NULL.
      • mallocStack

        @Deprecated
        public static VkLayerProperties mallocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
      • callocStack

        @Deprecated
        public static VkLayerProperties callocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
      • malloc

        public static VkLayerProperties malloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new VkLayerProperties instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • calloc

        public static VkLayerProperties calloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new VkLayerProperties instance allocated on the specified MemoryStack and 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 new VkLayerProperties.Buffer instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • calloc

        public static VkLayerProperties.Buffer calloc​(int capacity,
                                                      org.lwjgl.system.MemoryStack stack)
        Returns a new VkLayerProperties.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • nlayerName

        public static java.nio.ByteBuffer nlayerName​(long struct)
        Unsafe version of layerName().
      • nlayerNameString

        public static java.lang.String nlayerNameString​(long struct)
        Unsafe version of layerNameString().
      • nspecVersion

        public static int nspecVersion​(long struct)
        Unsafe version of specVersion().
      • nimplementationVersion

        public static int nimplementationVersion​(long struct)
        Unsafe version of implementationVersion().
      • ndescription

        public static java.nio.ByteBuffer ndescription​(long struct)
        Unsafe version of description().
      • ndescriptionString

        public static java.lang.String ndescriptionString​(long struct)
        Unsafe version of descriptionString().