Struct DxgiOutputDesc
Describes an output or physical connection between the adapter (video card) and a device.
Assembly: JeremyAnsel.DirectX.Dxgi.dll
Syntax
public struct DxgiOutputDesc : IEquatable<DxgiOutputDesc>
Fields
|
Edit this page
View Source
DeviceNameMaxLength
Gets the maximum char count of the string that contains the adapter description.
Declaration
public const int DeviceNameMaxLength = 32
Field Value
Properties
|
Edit this page
View Source
DesktopCoordinates
Gets a DxgiRect structure containing the bounds of the output in desktop coordinates. Desktop coordinates depend on the dots per inch (DPI) of the desktop.
Declaration
public readonly DxgiRect DesktopCoordinates { get; }
Property Value
|
Edit this page
View Source
DeviceName
Gets a string that contains the name of the output device.
Declaration
public readonly string DeviceName { get; }
Property Value
|
Edit this page
View Source
IsAttachedToDesktop
Gets a value indicating whether the output is attached to the desktop.
Declaration
public readonly bool IsAttachedToDesktop { get; }
Property Value
|
Edit this page
View Source
Monitor
Gets an handle that represents the display monitor.
Declaration
public readonly nint Monitor { get; }
Property Value
|
Edit this page
View Source
Rotation
Gets a member of the DxgiModeRotation enumeration describing on how an image is rotated by the output.
Declaration
public readonly DxgiModeRotation Rotation { get; }
Property Value
Methods
|
Edit this page
View Source
Equals(DxgiOutputDesc)
Declaration
public readonly bool Equals(DxgiOutputDesc other)
Parameters
Returns
|
Edit this page
View Source
Equals(object?)
Declaration
public override readonly bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
|
Edit this page
View Source
GetDeviceNameAsSpan()
Gets a string as span that contains the name of the output device.
Declaration
public readonly ReadOnlySpan<char> GetDeviceNameAsSpan()
Returns
|
Edit this page
View Source
GetDeviceNameCharCount()
Gets the char count of the string that contains the adapter description. On feature level 9 graphics hardware, “Software Adapter”.
Declaration
public readonly int GetDeviceNameCharCount()
Returns
|
Edit this page
View Source
GetDeviceNameChars(Span<char>)
Gets the chars of the string that contains the adapter description. On feature level 9 graphics hardware, “Software Adapter”.
Declaration
public readonly void GetDeviceNameChars(Span<char> desc)
Parameters
|
Edit this page
View Source
GetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Overrides
|
Edit this page
View Source
NativeReadFrom(nint)
Declaration
public static DxgiOutputDesc NativeReadFrom(nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
NativeReadFrom(nint, Span<DxgiOutputDesc>)
Declaration
public static void NativeReadFrom(nint buffer, Span<DxgiOutputDesc> objects)
Parameters
|
Edit this page
View Source
NativeRequiredSize()
Declaration
public static int NativeRequiredSize()
Returns
|
Edit this page
View Source
NativeRequiredSize(int)
Declaration
public static int NativeRequiredSize(int count)
Parameters
| Type |
Name |
Description |
| int |
count |
|
Returns
|
Edit this page
View Source
NativeWriteTo(nint, in DxgiOutputDesc)
Declaration
public static void NativeWriteTo(nint buffer, in DxgiOutputDesc obj)
Parameters
|
Edit this page
View Source
NativeWriteTo(nint, ReadOnlySpan<DxgiOutputDesc>)
Declaration
public static void NativeWriteTo(nint buffer, ReadOnlySpan<DxgiOutputDesc> objects)
Parameters
|
Edit this page
View Source
ToString()
Returns a string that represents the current object.
Declaration
public override readonly string ToString()
Returns
| Type |
Description |
| string |
A string that represents the current object.
|
Overrides
Operators
|
Edit this page
View Source
operator ==(DxgiOutputDesc, DxgiOutputDesc)
Declaration
public static bool operator ==(DxgiOutputDesc left, DxgiOutputDesc right)
Parameters
Returns
|
Edit this page
View Source
operator !=(DxgiOutputDesc, DxgiOutputDesc)
Declaration
public static bool operator !=(DxgiOutputDesc left, DxgiOutputDesc right)
Parameters
Returns
Implements