Class VkBufferMemoryBarrier2

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, SRCSTAGEMASK, SRCACCESSMASK, DSTSTAGEMASK, DSTACCESSMASK, SRCQUEUEFAMILYINDEX, DSTQUEUEFAMILYINDEX, BUFFER, OFFSET, SIZE

        The struct member offsets.
    • Constructor Detail

      • VkBufferMemoryBarrier2

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

        public long buffer()
        a handle to the buffer whose backing memory is affected by the barrier.
      • offset

        public long offset()
        an offset in bytes into the backing memory for buffer; this is relative to the base offset as bound to the buffer (see BindBufferMemory).
      • size

        public long size()
        a size in bytes of the affected area of backing memory for buffer, or WHOLE_SIZE to use the range from offset to the end of the buffer.
      • set

        public VkBufferMemoryBarrier2 set​(int sType,
                                          long pNext,
                                          long srcStageMask,
                                          long srcAccessMask,
                                          long dstStageMask,
                                          long dstAccessMask,
                                          int srcQueueFamilyIndex,
                                          int dstQueueFamilyIndex,
                                          long buffer,
                                          long offset,
                                          long size)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

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

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

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

        public static int nsrcQueueFamilyIndex​(long struct)
        Unsafe version of srcQueueFamilyIndex().
      • ndstQueueFamilyIndex

        public static int ndstQueueFamilyIndex​(long struct)
        Unsafe version of dstQueueFamilyIndex().
      • nbuffer

        public static long nbuffer​(long struct)
        Unsafe version of buffer().
      • noffset

        public static long noffset​(long struct)
        Unsafe version of offset().
      • nsize

        public static long nsize​(long struct)
        Unsafe version of size().
      • 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.
      • nsrcQueueFamilyIndex

        public static void nsrcQueueFamilyIndex​(long struct,
                                                int value)
        Unsafe version of srcQueueFamilyIndex.
      • ndstQueueFamilyIndex

        public static void ndstQueueFamilyIndex​(long struct,
                                                int value)
        Unsafe version of dstQueueFamilyIndex.
      • nbuffer

        public static void nbuffer​(long struct,
                                   long value)
        Unsafe version of buffer.
      • noffset

        public static void noffset​(long struct,
                                   long value)
        Unsafe version of offset.
      • nsize

        public static void nsize​(long struct,
                                 long value)
        Unsafe version of size.