Class VkViewportWScalingNV

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • XCOEFF, YCOEFF

        The struct member offsets.
    • Constructor Detail

      • VkViewportWScalingNV

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

        public float xcoeff()
        xcoeff and ycoeff are the viewport’s W scaling factor for x and y respectively.
      • ycoeff

        public float ycoeff()
        see xcoeff
      • set

        public VkViewportWScalingNV set​(float xcoeff,
                                        float ycoeff)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

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

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

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

        public static float nxcoeff​(long struct)
        Unsafe version of xcoeff().
      • nycoeff

        public static float nycoeff​(long struct)
        Unsafe version of ycoeff().
      • nxcoeff

        public static void nxcoeff​(long struct,
                                   float value)
        Unsafe version of xcoeff.
      • nycoeff

        public static void nycoeff​(long struct,
                                   float value)
        Unsafe version of ycoeff.