Class SharedContext

java.lang.Object
icyllis.arc3d.granite.trash.SharedContext

@Deprecated public final class SharedContext extends Object
Deprecated.
Can be used to perform actions related to the generating Context in a thread safe manner. The proxy does not access the 3D API (e.g. OpenGL) that backs the generating Context.

This class is a public API, except where noted.

  • Method Details

    • getDefaultBackendFormat

      public @Nullable BackendFormat getDefaultBackendFormat(int colorType, boolean renderable)
      Deprecated.
      Retrieve the default BackendFormat for a given ColorType and renderability. It is guaranteed that this backend format will be the one used by the following ColorType and
      invalid reference
      SurfaceCharacterization#createBackendFormat(int, BackendFormat)
      .

      The caller should check that the returned format is valid (nullability).

      Parameters:
      colorType - see ImageDesc
      renderable - true if the format will be used as color attachments
    • getCompressedBackendFormat

      public @Nullable BackendFormat getCompressedBackendFormat(int compressionType)
      Deprecated.
      Retrieve the BackendFormat for a given CompressionType. This is guaranteed to match the backend format used by the following createCompressedBackendTexture methods that take a CompressionType.

      The caller should check that the returned format is valid (nullability).

      Parameters:
      compressionType - see ImageDesc
    • getMaxSurfaceSampleCount

      public int getMaxSurfaceSampleCount(int colorType)
      Deprecated.
      Gets the maximum supported sample count for a color type. 1 is returned if only non-MSAA rendering is supported for the color type. 0 is returned if rendering to this color type is not supported at all.
      Parameters:
      colorType - see ImageDesc
    • isValid

      public boolean isValid()
      Deprecated.
      Returns:
      initialized or not, if ImmediateContext is created, it must be true
    • matches

      @Internal public boolean matches(Context c)
      Deprecated.
    • getBackend

      @Internal public int getBackend()
      Deprecated.
    • getOptions

      @Internal public ContextOptions getOptions()
      Deprecated.
    • getContextID

      @Internal public int getContextID()
      Deprecated.
    • getCaps

      @Internal public Caps getCaps()
      Deprecated.
    • getThreadSafeCache

      @Internal public ThreadSafeCache getThreadSafeCache()
      Deprecated.
    • getPipelineCache

      @Internal public GlobalResourceCache getPipelineCache()
      Deprecated.
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object