Class VkDisplayPowerInfoEXT

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

    public class VkDisplayPowerInfoEXT
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Describe the power state of a display.
    Valid Usage (Implicit)
    See Also

    DisplayPowerControlEXT

    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure.
    • powerState – a VkDisplayPowerStateEXT value specifying the new power state of the display.

    Layout

    
     struct VkDisplayPowerInfoEXT {
         VkStructureType sType;
         void const * pNext;
         VkDisplayPowerStateEXT powerState;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, POWERSTATE

        The struct member offsets.
    • Constructor Detail

      • VkDisplayPowerInfoEXT

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

        public int powerState()
        Returns the value of the powerState field.
      • pNext

        public VkDisplayPowerInfoEXT pNext​(long value)
        Sets the specified value to the pNext field.
      • powerState

        public VkDisplayPowerInfoEXT powerState​(int value)
        Sets the specified value to the powerState field.
      • set

        public VkDisplayPowerInfoEXT set​(int sType,
                                         long pNext,
                                         int powerState)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

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

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

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

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

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

        public static int npowerState​(long struct)
        Unsafe version of powerState().
      • 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.
      • npowerState

        public static void npowerState​(long struct,
                                       int value)
        Unsafe version of powerState.