Class VkMemoryBarrier2

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, SRCSTAGEMASK, SRCACCESSMASK, DSTSTAGEMASK, DSTACCESSMASK

        The struct member offsets.
    • Constructor Detail

      • VkMemoryBarrier2

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

        public long srcStageMask()
        a VkPipelineStageFlags2 mask of pipeline stages to be included in the first synchronization scope.
      • srcAccessMask

        public long srcAccessMask()
        a VkAccessFlags2 mask of access flags to be included in the first access scope.
      • dstStageMask

        public long dstStageMask()
        a VkPipelineStageFlags2 mask of pipeline stages to be included in the second synchronization scope.
      • dstAccessMask

        public long dstAccessMask()
        a VkAccessFlags2 mask of access flags to be included in the second access scope.
      • set

        public VkMemoryBarrier2 set​(int sType,
                                    long pNext,
                                    long srcStageMask,
                                    long srcAccessMask,
                                    long dstStageMask,
                                    long dstAccessMask)
        Initializes this struct with the specified values.
      • set

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

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

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

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

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

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

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

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

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

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

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

        public static long nsrcStageMask​(long struct)
        Unsafe version of srcStageMask().
      • nsrcAccessMask

        public static long nsrcAccessMask​(long struct)
        Unsafe version of srcAccessMask().
      • ndstStageMask

        public static long ndstStageMask​(long struct)
        Unsafe version of dstStageMask().
      • ndstAccessMask

        public static long ndstAccessMask​(long struct)
        Unsafe version of dstAccessMask().
      • 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.
      • nsrcStageMask

        public static void nsrcStageMask​(long struct,
                                         long value)
        Unsafe version of srcStageMask.
      • nsrcAccessMask

        public static void nsrcAccessMask​(long struct,
                                          long value)
        Unsafe version of srcAccessMask.
      • ndstStageMask

        public static void ndstStageMask​(long struct,
                                         long value)
        Unsafe version of dstStageMask.
      • ndstAccessMask

        public static void ndstAccessMask​(long struct,
                                          long value)
        Unsafe version of dstAccessMask.