콘텐츠로 이동

GpuDeviceIdentity structure

이 콘텐츠는 아직 번역되지 않았습니다.

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 struct GpuDeviceIdentity : IEquatable<GpuDeviceIdentity>
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.
name description
GpuDeviceIdentity(…) 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.
IdHigh { get; set; } High part of the opaque id.
IdLow { get; set; } Low part of the opaque id.
IsEmpty { get; } Gets whether no field is set.
NativeHandle { get; set; } Native device handle, when the backend has one.