Skip to content

GpuResourceAffinity structure

Describes where a GPU resource belongs. Backends use this as a compatibility hint before attempting zero-copy import/sample paths.

public struct GpuResourceAffinity : IEquatable<GpuResourceAffinity>
parameter description
Display Display the resource is tied to, or null when it is not tied to one.
Device GPU device the resource belongs to, or null when unknown.
name description
GpuResourceAffinity(…) Describes where a GPU resource belongs. Backends use this as a compatibility hint before attempting zero-copy import/sample paths.
Device { get; set; } GPU device the resource belongs to, or null when unknown.
Display { get; set; } Display the resource is tied to, or null when it is not tied to one.
IsEmpty { get; } Gets whether neither a display nor a device is set.