Class SurfaceContext

java.lang.Object
icyllis.arc3d.granite.SurfaceContext
All Implemented Interfaces:
AutoCloseable

public class SurfaceContext extends Object implements AutoCloseable
Helper to orchestrate commands for a particular surface.

The base class assumes the surface is not renderable, so you can only perform simple read and write operations.

  • Field Details

  • Constructor Details

  • Method Details

    • getContext

      @RawPtr public final @RawPtr RecordingContext getContext()
      Returns:
      raw ptr to the context
    • getReadView

      @RawPtr public final @RawPtr ImageProxyView getReadView()
      Returns:
      raw ptr to the read view
    • getImageInfo

      public final ImageInfo getImageInfo()
    • getColorType

      public final int getColorType()
      See Also:
    • getAlphaType

      public final int getAlphaType()
      See Also:
    • getWidth

      public final int getWidth()
    • getHeight

      public final int getHeight()
    • isMipmapped

      public final boolean isMipmapped()
    • getOrigin

      public final int getOrigin()
      Read view and write view have the same origin.
      See Also:
    • getReadSwizzle

      public final short getReadSwizzle()
      See Also:
    • getCaps

      public final Caps getCaps()
    • getDrawingManager

      protected final RenderTaskManager getDrawingManager()
    • close

      public void close()
      Destructs this context.
      Specified by:
      close in interface AutoCloseable