Enum Class LayoutMode

java.lang.Object
java.lang.Enum<LayoutMode>
dev.engine.core.layout.LayoutMode
All Implemented Interfaces:
Serializable, Comparable<LayoutMode>, Constable

public enum LayoutMode extends Enum<LayoutMode>
GPU buffer layout mode determining alignment rules.
  • Enum Constant Details

    • PACKED

      public static final LayoutMode PACKED
      Packed layout — no alignment padding. For vertex buffers, CPU-side data.
    • STD140

      public static final LayoutMode STD140
      std140 layout — for Uniform Buffer Objects. vec3 aligned to 16 bytes.
    • STD430

      public static final LayoutMode STD430
      std430 layout — for Shader Storage Buffer Objects. Same as std140 for scalars/vectors.
  • Method Details

    • values

      public static LayoutMode[] 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 LayoutMode 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