Class PresentationParameters
Describess how data will be displayed to the screen.
public class PresentationParameters : IEquatable<PresentationParameters>
- Inheritance
-
PresentationParameters
- Implements
Constructors
PresentationParameters()
Initializes a new instance of the PresentationParameters class with default values.
public PresentationParameters()
PresentationParameters(int, int, WindowHandle)
Initializes a new instance of the PresentationParameters class with R8G8B8A8_UNorm.
public PresentationParameters(int backBufferWidth, int backBufferHeight, WindowHandle deviceWindowHandle)
Parameters
backBufferWidth
intWidth of the back buffer.
backBufferHeight
intHeight of the back buffer.
deviceWindowHandle
WindowHandleThe device window handle.
PresentationParameters(int, int, WindowHandle, PixelFormat)
Initializes a new instance of the PresentationParameters class.
public PresentationParameters(int backBufferWidth, int backBufferHeight, WindowHandle deviceWindowHandle, PixelFormat backBufferFormat)
Parameters
backBufferWidth
intWidth of the back buffer.
backBufferHeight
intHeight of the back buffer.
deviceWindowHandle
WindowHandleThe device window handle.
backBufferFormat
PixelFormatThe back buffer format.
Fields
BackBufferFormat
A SharpDX.DXGI.Format structure describing the display format.
public PixelFormat BackBufferFormat
Field Value
BackBufferHeight
A value that describes the resolution height.
public int BackBufferHeight
Field Value
BackBufferWidth
A value that describes the resolution width.
public int BackBufferWidth
Field Value
ColorSpace
The colorspace used.
public ColorSpace ColorSpace
Field Value
DepthStencilFormat
Gets or sets the depth stencil format
public PixelFormat DepthStencilFormat
Field Value
DeviceWindowHandle
A Window object. See remarks.
public WindowHandle DeviceWindowHandle
Field Value
Remarks
A window object is platform dependent:
- On Windows Desktop: This could a low level window/control handle (IntPtr), or directly a Winform Control object.
- On Windows Metro: This could be SwapChainBackgroundPanel or SwapChainPanel object.
IsFullScreen
Gets or sets a value indicating whether the application is in full screen mode.
public bool IsFullScreen
Field Value
MultisampleCount
Gets or sets a value indicating the number of sample locations during multisampling.
public MultisampleCount MultisampleCount
Field Value
PreferredFullScreenOutputIndex
The output (monitor) index to use when switching to fullscreen mode. Doesn't have any effect when windowed mode is used.
public int PreferredFullScreenOutputIndex
Field Value
PresentationInterval
Gets or sets the maximum rate at which the swap chain's back buffers can be presented to the front buffer.
public PresentInterval PresentationInterval
Field Value
RefreshRate
A structure describing the refresh rate in hertz
public Rational RefreshRate
Field Value
Methods
Clone()
public PresentationParameters Clone()
Returns
Equals(PresentationParameters)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(PresentationParameters other)
Parameters
other
PresentationParametersAn object to compare with this object.
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Operators
operator ==(PresentationParameters, PresentationParameters)
public static bool operator ==(PresentationParameters left, PresentationParameters right)
Parameters
left
PresentationParametersright
PresentationParameters
Returns
operator !=(PresentationParameters, PresentationParameters)
public static bool operator !=(PresentationParameters left, PresentationParameters right)
Parameters
left
PresentationParametersright
PresentationParameters