Class VkDisplayModeParametersKHR

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

    public class VkDisplayModeParametersKHR
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Structure describing display parameters associated with a display mode.
    Description
    Note

    For example, a 60Hz display mode would report a refreshRate of 60,000.

    Valid Usage
    • The width member of visibleRegion must be greater than 0
    • The height member of visibleRegion must be greater than 0
    • refreshRate must be greater than 0
    See Also

    VkDisplayModeCreateInfoKHR, VkDisplayModePropertiesKHR, VkExtent2D

    Member documentation

    • visibleRegion – the 2D extents of the visible region.
    • refreshRate – a uint32_t that is the number of times the display is refreshed each second multiplied by 1000.

    Layout

    
     struct VkDisplayModeParametersKHR {
         VkExtent2D visibleRegion;
         uint32_t refreshRate;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • VISIBLEREGION, REFRESHRATE

        The struct member offsets.
    • Constructor Detail

      • VkDisplayModeParametersKHR

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