Enum Class GpuApi

java.lang.Object
java.lang.Enum<GpuApi>
com.mojang.jtracy.GpuApi
All Implemented Interfaces:
Serializable, Comparable<GpuApi>, Constable

public enum GpuApi extends Enum<GpuApi>
An API that is being used by a GpuContext.
  • Enum Constant Details

    • INVALID

      public static final GpuApi INVALID
      An invalid or unknown API context.
    • OPENGL

      public static final GpuApi OPENGL
      An OpenGL (or GL ES) context.
    • VULKAN

      public static final GpuApi VULKAN
      A Vulkan context.
    • OPENCL

      public static final GpuApi OPENCL
      An OpenCL context.
    • DIRECT3D_12

      public static final GpuApi DIRECT3D_12
      A DirectX 12 context.
    • DIRECT3D_11

      public static final GpuApi DIRECT3D_11
      A DirectX 11 context.
  • Method Details

    • values

      public static GpuApi[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static GpuApi valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null