Class VkDependencyInfo

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, DEPENDENCYFLAGS, MEMORYBARRIERCOUNT, PMEMORYBARRIERS, BUFFERMEMORYBARRIERCOUNT, PBUFFERMEMORYBARRIERS, IMAGEMEMORYBARRIERCOUNT, PIMAGEMEMORYBARRIERS

        The struct member offsets.
    • Constructor Detail

      • VkDependencyInfo

        public VkDependencyInfo​(java.nio.ByteBuffer container)
        Creates a VkDependencyInfo 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
      • sType

        public int sType()
        the type of this structure.
      • pNext

        public long pNext()
        NULL or a pointer to a structure extending this structure.
      • dependencyFlags

        public int dependencyFlags()
        a bitmask of VkDependencyFlagBits specifying how execution and memory dependencies are formed.
      • memoryBarrierCount

        public int memoryBarrierCount()
        the length of the pMemoryBarriers array.
      • bufferMemoryBarrierCount

        public int bufferMemoryBarrierCount()
        the length of the pBufferMemoryBarriers array.
      • imageMemoryBarrierCount

        public int imageMemoryBarrierCount()
        the length of the pImageMemoryBarriers array.
      • set

        public VkDependencyInfo set​(VkDependencyInfo src)
        Copies the specified struct data to this struct.
        Parameters:
        src - the source struct
        Returns:
        this struct
      • malloc

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

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

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

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

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

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

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

        public static VkDependencyInfo calloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new VkDependencyInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • malloc

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

        public static VkDependencyInfo.Buffer calloc​(int capacity,
                                                     org.lwjgl.system.MemoryStack stack)
        Returns a new VkDependencyInfo.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
      • nsType

        public static int nsType​(long struct)
        Unsafe version of sType().
      • npNext

        public static long npNext​(long struct)
        Unsafe version of pNext().
      • ndependencyFlags

        public static int ndependencyFlags​(long struct)
        Unsafe version of dependencyFlags().
      • nmemoryBarrierCount

        public static int nmemoryBarrierCount​(long struct)
        Unsafe version of memoryBarrierCount().
      • nbufferMemoryBarrierCount

        public static int nbufferMemoryBarrierCount​(long struct)
        Unsafe version of bufferMemoryBarrierCount().
      • nimageMemoryBarrierCount

        public static int nimageMemoryBarrierCount​(long struct)
        Unsafe version of imageMemoryBarrierCount().
      • nsType

        public static void nsType​(long struct,
                                  int value)
        Unsafe version of sType.
      • npNext

        public static void npNext​(long struct,
                                  long value)
        Unsafe version of pNext.
      • ndependencyFlags

        public static void ndependencyFlags​(long struct,
                                            int value)
        Unsafe version of dependencyFlags.
      • nmemoryBarrierCount

        public static void nmemoryBarrierCount​(long struct,
                                               int value)
        Sets the specified value to the memoryBarrierCount field of the specified struct.
      • nbufferMemoryBarrierCount

        public static void nbufferMemoryBarrierCount​(long struct,
                                                     int value)
        Sets the specified value to the bufferMemoryBarrierCount field of the specified struct.
      • nimageMemoryBarrierCount

        public static void nimageMemoryBarrierCount​(long struct,
                                                    int value)
        Sets the specified value to the imageMemoryBarrierCount field of the specified struct.
      • validate

        public static void validate​(long struct)
        Validates pointer members that should not be NULL.
        Parameters:
        struct - the struct to validate