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. |
Public Members
Section titled “Public Members”| 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. |
See Also
Section titled “See Also”- namespace Aprillz.MewUI.Rendering