Creates Direct3D backend render target object from D3D12 texture resource. For more information refer to skia GrBackendRenderTarget class. @param width width of the render target in pixels @param height height of the render target in pixels @param texturePtr pointer
(int width, int height, long texturePtr, int format, int sampleCnt, int levelCnt)
| 30 | * @param levelCnt sampling quality level for texture resource |
| 31 | */ |
| 32 | @NotNull @Contract("_, _, _, _, _, _ -> new") |
| 33 | public static BackendRenderTarget makeDirect3D(int width, int height, long texturePtr, int format, int sampleCnt, int levelCnt) { |
| 34 | Stats.onNativeCall(); |
| 35 | return new BackendRenderTarget(_nMakeDirect3D(width, height, texturePtr, format, sampleCnt, levelCnt)); |
| 36 | } |
| 37 | |
| 38 | @NotNull @Contract("_, _, _, _, _, _, _, _, _ -> new") |
| 39 | public static BackendRenderTarget makeVulkan(int width, int height, long imagePtr, int imageTiling, int imageLayout, int format, int imageUsageFlags, int sampleCnt, int levelCnt) { |
nothing calls this directly
no test coverage detected