Class VulkanContext

All Implemented Interfaces:
Proxy
Direct Known Subclasses:
VulkanContext.VulkanContext$Impl

@Generated("org.javagi.JavaGI") @Deprecated public abstract class VulkanContext extends DrawContext
Deprecated.
GTK does not expose any Vulkan internals. This struct is a leftover that was accidentally exposed.

Represents the platform-specific Vulkan draw context.

GdkVulkanContexts are created for a surface using Surface.createVulkanContext(), and the context will match the characteristics of the surface.

Support for GdkVulkanContext is platform-specific and context creation can fail, returning null context.

  • Constructor Details

    • VulkanContext

      public VulkanContext(MemorySegment address)
      Deprecated.
      Create a VulkanContext instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • VulkanContext

      public VulkanContext()
      Deprecated.
      Create a new VulkanContext.
  • Method Details

    • getType

      public static @Nullable Type getType()
      Deprecated.
      Get the GType of the VulkanContext class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      Deprecated.
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected VulkanContext asParent()
      Deprecated.
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class DrawContext
      Returns:
      the instance as if it were its parent type
    • onImagesUpdated

      Deprecated.

      Emitted when the images managed by this context have changed.

      Usually this means that the swapchain had to be recreated, for example in response to a change of the surface size.

      Parameters:
      handler - the signal handler
      Returns:
      a signal handler ID to keep track of the signal connection
      See Also:
    • emitImagesUpdated

      public void emitImagesUpdated()
      Deprecated.
      Emits the "images-updated" signal. See onImagesUpdated(VulkanContext.ImagesUpdatedCallback).