Class PresentationParameters
Describess how data will be displayed to the screen.
public class PresentationParameters : IEquatable<PresentationParameters>- Inheritance
- 
      objectPresentationParameters
- 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
- backBufferWidthint
- Width of the back buffer. 
- backBufferHeightint
- Height of the back buffer. 
- deviceWindowHandleWindowHandle
- The 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
- backBufferWidthint
- Width of the back buffer. 
- backBufferHeightint
- Height of the back buffer. 
- deviceWindowHandleWindowHandle
- The device window handle. 
- backBufferFormatPixelFormat
- The back buffer format. 
Fields
BackBufferFormat
A SharpDX.DXGI.Format structure describing the display format.
public PixelFormat BackBufferFormatField Value
BackBufferHeight
A value that describes the resolution height.
public int BackBufferHeightField Value
BackBufferWidth
A value that describes the resolution width.
public int BackBufferWidthField Value
ColorSpace
The colorspace of the rendering pipeline.
public ColorSpace ColorSpaceField Value
DepthStencilFormat
Gets or sets the depth stencil format
public PixelFormat DepthStencilFormatField Value
DeviceWindowHandle
A Window object. See remarks.
public WindowHandle DeviceWindowHandleField 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 IsFullScreenField Value
MultisampleCount
Gets or sets a value indicating the number of sample locations during multisampling.
public MultisampleCount MultisampleCountField Value
OutputColorSpace
The colorspace type used for the swapchain output. Currently only supported by the DirectX backend.
public ColorSpaceType OutputColorSpaceField 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 PreferredFullScreenOutputIndexField 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 PresentationIntervalField Value
RefreshRate
A structure describing the refresh rate in hertz
public Rational RefreshRateField 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
- otherPresentationParameters
- An 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
- objobject
- The 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
- leftPresentationParameters
- rightPresentationParameters
Returns
operator !=(PresentationParameters, PresentationParameters)
public static bool operator !=(PresentationParameters left, PresentationParameters right)Parameters
- leftPresentationParameters
- rightPresentationParameters