using TerraFX.Interop; namespace ComputeSharp.Graphics { /// /// A type containing info on a given DX12.0 device that can be used. /// public readonly struct GraphicsDeviceInfo { /// /// Creates a new instance with the specified parameters. /// /// The available info for the associate device. internal unsafe GraphicsDeviceInfo(DXGI_ADAPTER_DESC1* dxgiDescription1) { Luid = Luid.FromLUID(dxgiDescription1->AdapterLuid); Name = new string((char*)dxgiDescription1->Description); MemorySize = dxgiDescription1->DedicatedVideoMemory; } /// /// Gets the locally unique identifier for the current device. /// public Luid Luid { get; } /// /// Gets the name of the associated device. /// public string Name { get; } /// /// Gets the size of the dedicated video memory for the associated device. /// public nuint MemorySize { get; } } }