Class VkViewportWScalingNV

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

    public class VkViewportWScalingNV
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Structure specifying a viewport.

    Member documentation

    • xcoeffxcoeff and ycoeff are the viewport’s W scaling factor for x and y respectively.
    • ycoeff – see xcoeff

    Layout

    
     struct VkViewportWScalingNV {
         float xcoeff;
         float ycoeff;
     }
    • 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()
        Returns the value of the xcoeff field.
      • ycoeff

        public float ycoeff()
        Returns the value of the ycoeff field.
      • xcoeff

        public VkViewportWScalingNV xcoeff​(float value)
        Sets the specified value to the xcoeff field.
      • ycoeff

        public VkViewportWScalingNV ycoeff​(float value)
        Sets the specified value to the ycoeff field.
      • 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.
      • mallocStack

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

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

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

        public static VkViewportWScalingNV callocStack​(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
      • mallocStack

        public static VkViewportWScalingNV.Buffer mallocStack​(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
      • callocStack

        public static VkViewportWScalingNV.Buffer callocStack​(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.