struct NativeGpuImageOwner
source · line 46public
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.
field retain
source · line 48public
val retain: GCLeafFunPtr<(Ptr<Unit>) -> Unit>
field release
source · line 49public
val release: GCLeafFunPtr<(Ptr<Unit>, UInt) -> Unit>
field payload
source · line 47public
val payload: Ptr<Unit>
constructor constructor
source · line 46public
constructor(val payload: Ptr<Unit>, val retain: GCLeafFunPtr<(Ptr<Unit>) -> Unit>, val release: GCLeafFunPtr<(Ptr<Unit>, UInt) -> Unit>)
parameter release
source · line 49public
val release: GCLeafFunPtr<(Ptr<Unit>, UInt) -> Unit>
parameter payload
source · line 47public
val payload: Ptr<Unit>
parameter retain
source · line 48public
val retain: GCLeafFunPtr<(Ptr<Unit>) -> Unit>
function equals
source · line 46publiccompiler-derived
operator fun equals(other: NativeGpuImageOwner): Boolean
This derived operation is available when each field or payload type supports same-type equality. Required types: Ptr<Unit>, GCLeafFunPtr<(Ptr<Unit>) -> Unit>, GCLeafFunPtr<(Ptr<Unit>, UInt) -> Unit>.