Class VkImageViewHandleInfoNVX

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

    public class VkImageViewHandleInfoNVX
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Structure specifying the image view for handle queries.
    Valid Usage
    Valid Usage (Implicit)
    • sType must be STRUCTURE_TYPE_IMAGE_VIEW_HANDLE_INFO_NVX
    • pNext must be NULL
    • imageView must be a valid VkImageView handle
    • descriptorType must be a valid VkDescriptorType value
    • If sampler is not NULL_HANDLE, sampler must be a valid VkSampler handle
    • Both of imageView, and sampler that are valid handles must have been created, allocated, or retrieved from the same VkDevice
    See Also

    GetImageViewHandleNVX

    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure.
    • imageView – the image view to query.
    • descriptorType – the type of descriptor for which to query a handle.
    • sampler – the sampler to combine with the image view when generating the handle.

    Layout

    
     struct VkImageViewHandleInfoNVX {
         VkStructureType sType;
         void const * pNext;
         VkImageView imageView;
         VkDescriptorType descriptorType;
         VkSampler sampler;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, IMAGEVIEW, DESCRIPTORTYPE, SAMPLER

        The struct member offsets.
    • Constructor Detail

      • VkImageViewHandleInfoNVX

        public VkImageViewHandleInfoNVX​(java.nio.ByteBuffer container)
        Creates a VkImageViewHandleInfoNVX 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()
        Returns the value of the sType field.
      • pNext

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

        public long imageView()
        Returns the value of the imageView field.
      • descriptorType

        public int descriptorType()
        Returns the value of the descriptorType field.
      • sampler

        public long sampler()
        Returns the value of the sampler field.
      • imageView

        public VkImageViewHandleInfoNVX imageView​(long value)
        Sets the specified value to the imageView field.
      • descriptorType

        public VkImageViewHandleInfoNVX descriptorType​(int value)
        Sets the specified value to the descriptorType field.
      • set

        public VkImageViewHandleInfoNVX set​(int sType,
                                            long pNext,
                                            long imageView,
                                            int descriptorType,
                                            long sampler)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

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

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

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

        public static long nimageView​(long struct)
        Unsafe version of imageView().
      • ndescriptorType

        public static int ndescriptorType​(long struct)
        Unsafe version of descriptorType().
      • nsampler

        public static long nsampler​(long struct)
        Unsafe version of sampler().
      • 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.
      • nimageView

        public static void nimageView​(long struct,
                                      long value)
        Unsafe version of imageView.
      • ndescriptorType

        public static void ndescriptorType​(long struct,
                                           int value)
        Unsafe version of descriptorType.
      • nsampler

        public static void nsampler​(long struct,
                                    long value)
        Unsafe version of sampler.