Package io.github.humbleui.skija
Class BackendRenderTarget
- java.lang.Object
-
- io.github.humbleui.skija.impl.Native
-
- io.github.humbleui.skija.impl.Managed
-
- io.github.humbleui.skija.BackendRenderTarget
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class BackendRenderTarget extends Managed
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBackendRenderTarget._FinalizerHolder-
Nested classes/interfaces inherited from class io.github.humbleui.skija.impl.Managed
Managed.CleanerThunk
-
-
Field Summary
-
Fields inherited from class io.github.humbleui.skija.impl.Managed
_cleanable
-
-
Constructor Summary
Constructors Constructor Description BackendRenderTarget(long ptr)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static long_nGetFinalizer()static long_nMakeDirect3D(int width, int height, long texturePtr, int format, int sampleCnt, int levelCnt)static long_nMakeGL(int width, int height, int sampleCnt, int stencilBits, int fbId, int fbFormat)static long_nMakeMetal(int width, int height, long texturePtr)static @NotNull BackendRenderTargetmakeDirect3D(int width, int height, long texturePtr, int format, int sampleCnt, int levelCnt)Creates Direct3D backend render target object from D3D12 texture resource.static @NotNull BackendRenderTargetmakeGL(int width, int height, int sampleCnt, int stencilBits, int fbId, int fbFormat)static @NotNull BackendRenderTargetmakeMetal(int width, int height, long texturePtr)-
Methods inherited from class io.github.humbleui.skija.impl.Managed
_nInvokeFinalizer, close, isClosed
-
-
-
-
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 pixelsheight- height of the render target in pixelstexturePtr- pointer to ID3D12Resource texture resource object; must be not zeroformat- pixel data DXGI_FORMAT fromat of the texturePtr resourcesampleCnt- samples count for texture resourcelevelCnt- 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)
-
-