Class VkFenceCreateInfo

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

    public class VkFenceCreateInfo
    extends Struct
    implements NativeResource
    Structure specifying parameters of a newly created fence.
    Valid Usage (Implicit)
    See Also

    CreateFence

    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure.
    • flags – a bitmask of VkFenceCreateFlagBits specifying the initial state and behavior of the fence.

    Layout

    
     struct VkFenceCreateInfo {
         VkStructureType sType;
         void const * pNext;
         VkFenceCreateFlags flags;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, FLAGS

        The struct member offsets.
    • Constructor Detail

      • VkFenceCreateInfo

        public VkFenceCreateInfo​(java.nio.ByteBuffer container)
        Creates a VkFenceCreateInfo 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()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • sType

        public int sType()
        Returns the value of the sType field.
      • pNext

        public long pNext()
        Returns the value of the pNext field.
      • flags

        public int flags()
        Returns the value of the flags field.
      • sType

        public VkFenceCreateInfo sType​(int value)
        Sets the specified value to the sType field.
      • pNext

        public VkFenceCreateInfo pNext​(long value)
        Sets the specified value to the pNext field.
      • flags

        public VkFenceCreateInfo flags​(int value)
        Sets the specified value to the flags field.
      • set

        public VkFenceCreateInfo set​(int sType,
                                     long pNext,
                                     int flags)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

        public static VkFenceCreateInfo mallocStack()
        Returns a new VkFenceCreateInfo instance allocated on the thread-local MemoryStack.
      • callocStack

        public static VkFenceCreateInfo callocStack()
        Returns a new VkFenceCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

        public static VkFenceCreateInfo mallocStack​(MemoryStack stack)
        Returns a new VkFenceCreateInfo instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

        public static VkFenceCreateInfo callocStack​(MemoryStack stack)
        Returns a new VkFenceCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • nsType

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

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

        public static int nflags​(long struct)
        Unsafe version of flags().
      • 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.
      • nflags

        public static void nflags​(long struct,
                                  int value)
        Unsafe version of flags.