Class VkSurfaceFormatKHR

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

    public class VkSurfaceFormatKHR
    extends Struct
    implements NativeResource
    Structure describing a supported swapchain format-color space pair.

    Member documentation

    • format – a VkFormat that is compatible with the specified surface.
    • colorSpace – a presentation VkColorSpaceKHR that is compatible with the surface.


     struct VkSurfaceFormatKHR {
         VkFormat format;
         VkColorSpaceKHR colorSpace;
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.

        The struct member offsets.
    • Constructor Detail

      • VkSurfaceFormatKHR

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