Class BackendFormat

java.lang.Object
icyllis.arc3d.engine.BackendFormat
Direct Known Subclasses:
GLBackendFormat, MockBackendFormat, VkBackendFormat

@Immutable @Deprecated public abstract class BackendFormat extends Object
Deprecated.
Describes the backend texture format, immutable.
  • Constructor Details

    • BackendFormat

      public BackendFormat()
      Deprecated.
  • Method Details

    • getBackend

      public abstract int getBackend()
      Deprecated.
      See Also:
    • getGLFormat

      public int getGLFormat()
      Deprecated.
      If the backend API is OpenGL this gets the format as a GLenum.
    • getVkFormat

      public int getVkFormat()
      Deprecated.
      If the backend API is Vulkan this gets the format as a VkFormat.
    • getChannelFlags

      public abstract int getChannelFlags()
      Deprecated.
      Gets the channels present in the format as a bitfield of ColorChannelFlag values.
      See Also:
    • isSRGB

      public abstract boolean isSRGB()
      Deprecated.
    • isExternal

      public final boolean isExternal()
      Deprecated.
      Hints that a texture comes from external resources, and our engine cannot create such a texture with this format. It will be read-only (can be read/sampled from but cannot be written/rendered to).

      This is reserved for future use and currently always returns false.

    • getCompressionType

      public abstract int getCompressionType()
      Deprecated.
      See Also:
    • isCompressed

      public final boolean isCompressed()
      Deprecated.
    • getBytesPerBlock

      public abstract int getBytesPerBlock()
      Deprecated.
      Returns:
      if compressed, bytes per block, otherwise bytes per pixel
    • getDepthBits

      public abstract int getDepthBits()
      Deprecated.
    • getStencilBits

      public abstract int getStencilBits()
      Deprecated.
    • getFormatKey

      public abstract int getFormatKey()
      Deprecated.
      Returns:
      a key that is unique in the backend