Scoop API

scoop:scoop.graphics:0.1.0

NativeGpuImageOwner

struct NativeGpuImageOwner

source · line 46
public
public struct NativeGpuImageOwner(val payload: Ptr<Unit>, val retain: GCLeafFunPtr<(Ptr<Unit>) -> Unit>, val release: GCLeafFunPtr<(Ptr<Unit>, UInt) -> Unit>)

Pure native callbacks only; neither callback may enter Scoop or its GC. release runs when Skia no longer uses the texture, possibly on a cleanup thread. Its second argument is the final D3D12 resource state, or zero on other backends.