makeDirect3D
fun makeDirect3D(width: Int, height: Int, texturePtr: NativePointer, format: Int, sampleCnt: Int, levelCnt: Int): BackendRenderTarget
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 format of the texturePtr resource
sampleCnt
samples count for texture resource
levelCnt
sampling quality level for texture resource