Class VkViewportSwizzleNV

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

    public class VkViewportSwizzleNV
    extends Struct
    implements NativeResource
    Structure specifying a viewport swizzle.
    Valid Usage (Implicit)
    • x must be a valid VkViewportCoordinateSwizzleNV value
    • y must be a valid VkViewportCoordinateSwizzleNV value
    • z must be a valid VkViewportCoordinateSwizzleNV value
    • w must be a valid VkViewportCoordinateSwizzleNV value
    See Also

    VkPipelineViewportSwizzleStateCreateInfoNV

    Member documentation

    • x – a VkViewportCoordinateSwizzleNV value specifying the swizzle operation to apply to the x component of the primitive
    • y – a VkViewportCoordinateSwizzleNV value specifying the swizzle operation to apply to the y component of the primitive
    • z – a VkViewportCoordinateSwizzleNV value specifying the swizzle operation to apply to the z component of the primitive
    • w – a VkViewportCoordinateSwizzleNV value specifying the swizzle operation to apply to the w component of the primitive

    Layout

    
     struct VkViewportSwizzleNV {
         VkViewportCoordinateSwizzleNV x;
         VkViewportCoordinateSwizzleNV y;
         VkViewportCoordinateSwizzleNV z;
         VkViewportCoordinateSwizzleNV w;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • X, Y, Z, W

        The struct member offsets.
    • Constructor Detail

      • VkViewportSwizzleNV

        public VkViewportSwizzleNV​(java.nio.ByteBuffer container)
        Creates a VkViewportSwizzleNV 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()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • x

        public int x()
        Returns the value of the x field.
      • y

        public int y()
        Returns the value of the y field.
      • z

        public int z()
        Returns the value of the z field.
      • w

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

        public VkViewportSwizzleNV set​(int x,
                                       int y,
                                       int z,
                                       int w)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

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

        public static int nx​(long struct)
        Unsafe version of x().
      • ny

        public static int ny​(long struct)
        Unsafe version of y().
      • nz

        public static int nz​(long struct)
        Unsafe version of z().
      • nw

        public static int nw​(long struct)
        Unsafe version of w().
      • nx

        public static void nx​(long struct,
                              int value)
        Unsafe version of x.
      • ny

        public static void ny​(long struct,
                              int value)
        Unsafe version of y.
      • nz

        public static void nz​(long struct,
                              int value)
        Unsafe version of z.
      • nw

        public static void nw​(long struct,
                              int value)
        Unsafe version of w.