Class VkObjectTableEntryNVX

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

    public class VkObjectTableEntryNVX
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Common parameters of an object table resource entry.
    Valid Usage
    Valid Usage (Implicit)
    • type must be a valid VkObjectEntryTypeNVX value
    • flags must be a valid combination of VkObjectEntryUsageFlagBitsNVX values
    • flags must not be 0
    See Also

    RegisterObjectsNVX

    Member documentation

    • type – defines the entry type
    • flags – defines which VkPipelineBindPoint the resource can be used with. Some entry types allow only a single flag to be set.

    Layout

    
     struct VkObjectTableEntryNVX {
         VkObjectEntryTypeNVX type;
         VkObjectEntryUsageFlagsNVX flags;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • TYPE, FLAGS

        The struct member offsets.
    • Constructor Detail

      • VkObjectTableEntryNVX

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

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

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

        public VkObjectTableEntryNVX set​(int type,
                                         int flags)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

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

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

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

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

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

        public static int ntype​(long struct)
        Unsafe version of type().
      • nflags

        public static int nflags​(long struct)
        Unsafe version of flags().
      • ntype

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

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