Enum Class BufferUsage

java.lang.Object
java.lang.Enum<BufferUsage>
com.mojang.blaze3d.buffers.BufferUsage
All Implemented Interfaces:
Serializable, Comparable<BufferUsage>, Constable

public enum BufferUsage extends Enum<BufferUsage>
  • Enum Constant Details

    • DYNAMIC_WRITE

      public static final BufferUsage DYNAMIC_WRITE
    • STATIC_WRITE

      public static final BufferUsage STATIC_WRITE
    • STREAM_WRITE

      public static final BufferUsage STREAM_WRITE
    • STATIC_READ

      public static final BufferUsage STATIC_READ
    • DYNAMIC_READ

      public static final BufferUsage DYNAMIC_READ
    • STREAM_READ

      public static final BufferUsage STREAM_READ
    • DYNAMIC_COPY

      public static final BufferUsage DYNAMIC_COPY
    • STATIC_COPY

      public static final BufferUsage STATIC_COPY
    • STREAM_COPY

      public static final BufferUsage STREAM_COPY
  • Field Details

    • readable

      final boolean readable
    • writable

      final boolean writable
  • Constructor Details

    • BufferUsage

      private BufferUsage(boolean p_374184_, boolean p_374215_)
  • Method Details

    • values

      public static BufferUsage[] 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 BufferUsage 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
    • isReadable

      public boolean isReadable()
    • isWritable

      public boolean isWritable()