Class BackendRenderTarget

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class BackendRenderTarget
    extends Managed
    • Constructor Detail

      • BackendRenderTarget

        @Internal
        public BackendRenderTarget​(long ptr)
    • Method Detail

      • makeGL

        @NotNull
        @Contract("_, _, _, _, _, _ -> new")
        public static @NotNull BackendRenderTarget makeGL​(int width,
                                                          int height,
                                                          int sampleCnt,
                                                          int stencilBits,
                                                          int fbId,
                                                          int fbFormat)
      • makeMetal

        @NotNull
        @Contract("_, _, _ -> new")
        public static @NotNull BackendRenderTarget makeMetal​(int width,
                                                             int height,
                                                             long texturePtr)
      • makeDirect3D

        @NotNull
        @Contract("_, _, _, _, _, _ -> new")
        public static @NotNull BackendRenderTarget makeDirect3D​(int width,
                                                                int height,
                                                                long texturePtr,
                                                                int format,
                                                                int sampleCnt,
                                                                int levelCnt)

        Creates Direct3D backend render target object from D3D12 texture resource.

        For more information refer to skia GrBackendRenderTarget class.

        Parameters:
        width - width of the render target in pixels
        height - height of the render target in pixels
        texturePtr - pointer to ID3D12Resource texture resource object; must be not zero
        format - pixel data DXGI_FORMAT fromat of the texturePtr resource
        sampleCnt - samples count for texture resource
        levelCnt - sampling quality level for texture resource
      • _nGetFinalizer

        @Internal
        public static long _nGetFinalizer()
      • _nMakeGL

        @Internal
        public static long _nMakeGL​(int width,
                                    int height,
                                    int sampleCnt,
                                    int stencilBits,
                                    int fbId,
                                    int fbFormat)
      • _nMakeMetal

        @Internal
        public static long _nMakeMetal​(int width,
                                       int height,
                                       long texturePtr)
      • _nMakeDirect3D

        @Internal
        public static long _nMakeDirect3D​(int width,
                                          int height,
                                          long texturePtr,
                                          int format,
                                          int sampleCnt,
                                          int levelCnt)