Class VkVideoBindMemoryKHR

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

    public class VkVideoBindMemoryKHR
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Structure specifying device memory heap entry for video session object.
    Valid Usage (Implicit)
    See Also

    BindVideoSessionMemoryKHR

    Layout

    
     struct VkVideoBindMemoryKHR {
         VkStructureType sType();
         void const * pNext();
         uint32_t memoryBindIndex();
         VkDeviceMemory memory();
         VkDeviceSize memoryOffset();
         VkDeviceSize memorySize();
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, MEMORYBINDINDEX, MEMORY, MEMORYOFFSET, MEMORYSIZE

        The struct member offsets.
    • Constructor Detail

      • VkVideoBindMemoryKHR

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

        public long memory()
        the allocated device memory to be bound to the video session’s heap with index memoryBindIndex.
      • memoryOffset

        public long memoryOffset()
        the start offset of the region of memory which is to be bound.
      • memorySize

        public long memorySize()
        the size in bytes of the region of memory, starting from memoryOffset bytes, to be bound.
      • set

        public VkVideoBindMemoryKHR set​(int sType,
                                        long pNext,
                                        int memoryBindIndex,
                                        long memory,
                                        long memoryOffset,
                                        long memorySize)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

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

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

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

        public static int nmemoryBindIndex​(long struct)
        Unsafe version of memoryBindIndex().
      • nmemory

        public static long nmemory​(long struct)
        Unsafe version of memory().
      • nmemoryOffset

        public static long nmemoryOffset​(long struct)
        Unsafe version of memoryOffset().
      • nmemorySize

        public static long nmemorySize​(long struct)
        Unsafe version of memorySize().
      • 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.
      • nmemoryBindIndex

        public static void nmemoryBindIndex​(long struct,
                                            int value)
        Unsafe version of memoryBindIndex.
      • nmemory

        public static void nmemory​(long struct,
                                   long value)
        Unsafe version of memory.
      • nmemoryOffset

        public static void nmemoryOffset​(long struct,
                                         long value)
        Unsafe version of memoryOffset.
      • nmemorySize

        public static void nmemorySize​(long struct,
                                       long value)
        Unsafe version of memorySize.