Skip to content

GpuDeviceIdentity constructor

Identifies a backend GPU device for compatibility checks as an opaque (IdLow, IdHigh, NativeHandle) tuple. Equality is structural - two devices are equal when all three fields match, which is enough to gate zero-copy interop without the Core type carrying any GPU API name. Per-backend packing lives next to the backend.

public GpuDeviceIdentity(ulong IdLow, long IdHigh, IntPtr NativeHandle)
parameter description
IdLow Low part of the opaque id.
IdHigh High part of the opaque id.
NativeHandle Native device handle, when the backend has one.