콘텐츠로 이동

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.