4 using SiliconStudio.Core.Mathematics;
6 namespace SiliconStudio.
Paradox.Graphics
74 #region Constructors and Destructors
81 BackBufferWidth = 800;
82 BackBufferHeight = 480;
83 BackBufferFormat = PixelFormat.R8G8B8A8_UNorm;
84 PresentationInterval = PresentInterval.Immediate;
85 DepthStencilFormat = PixelFormat.D24_UNorm_S8_UInt;
86 MultiSampleCount = MSAALevel.None;
112 BackBufferWidth = backBufferWidth;
113 BackBufferHeight = backBufferHeight;
114 DeviceWindowHandle = deviceWindowHandle;
115 BackBufferFormat = backBufferFormat;
129 if (ReferenceEquals(null, other))
return false;
130 if (ReferenceEquals(
this, other))
return true;
131 return BackBufferFormat == other.BackBufferFormat && BackBufferHeight == other.BackBufferHeight && BackBufferWidth == other.BackBufferWidth && DepthStencilFormat == other.DepthStencilFormat && Equals(DeviceWindowHandle, other.
DeviceWindowHandle) && IsFullScreen.Equals(other.IsFullScreen) && MultiSampleCount == other.
MultiSampleCount && PresentationInterval == other.
PresentationInterval && RefreshRate.Equals(other.
RefreshRate) && PreferredFullScreenOutputIndex == other.PreferredFullScreenOutputIndex;
136 if (ReferenceEquals(null, obj))
return false;
137 if (ReferenceEquals(
this, obj))
return true;
138 if (obj.GetType() != this.GetType())
return false;
146 var hashCode = (int)BackBufferFormat;
147 hashCode = (hashCode * 397) ^ BackBufferHeight;
148 hashCode = (hashCode * 397) ^ BackBufferWidth;
149 hashCode = (hashCode * 397) ^ (
int)DepthStencilFormat;
150 hashCode = (hashCode * 397) ^ (DeviceWindowHandle != null ? DeviceWindowHandle.GetHashCode() : 0);
151 hashCode = (hashCode * 397) ^ IsFullScreen.GetHashCode();
152 hashCode = (hashCode * 397) ^ (
int)MultiSampleCount;
153 hashCode = (hashCode * 397) ^ (
int)PresentationInterval;
154 hashCode = (hashCode * 397) ^ RefreshRate.GetHashCode();
155 hashCode = (hashCode * 397) ^ PreferredFullScreenOutputIndex;
162 return Equals(left, right);
167 return !Equals(left, right);
int PreferredFullScreenOutputIndex
The output (monitor) index to use when switching to fullscreen mode. Doesn't have any effect when win...
PresentationParameters(int backBufferWidth, int backBufferHeight, WindowHandle deviceWindowHandle, PixelFormat backBufferFormat)
Initializes a new instance of the PresentationParameters class.
A platform specific window handle.
Rational RefreshRate
A structure describing the refresh rate in hertz
MSAALevel
Multisample count level.
int BackBufferWidth
A value that describes the resolution width.
bool Equals(PresentationParameters other)
int BackBufferHeight
A value that describes the resolution height.
PresentationParameters Clone()
WindowHandle DeviceWindowHandle
A Window object. See remarks.
PixelFormat BackBufferFormat
A SharpDX.DXGI.Format structure describing the display format.
PresentationParameters(int backBufferWidth, int backBufferHeight, WindowHandle deviceWindowHandle)
Initializes a new instance of the PresentationParameters class with PixelFormat.R8G8B8A8_UNorm.
PresentInterval PresentationInterval
Gets or sets the maximum rate at which the swap chain's back buffers can be presented to the front bu...
PresentInterval
Defines flags that describe the relationship between the adapter refresh rate and the rate at which P...
MSAALevel MultiSampleCount
Gets or sets a value indicating the number of sample locations during multisampling.
PixelFormat DepthStencilFormat
Gets or sets the depth stencil format
PresentationParameters()
Initializes a new instance of the PresentationParameters class with default values.
override int GetHashCode()
override bool Equals(object obj)
bool IsFullScreen
Gets or sets a value indicating whether the application is in full screen mode.
PixelFormat
Defines various types of pixel formats.
Describess how data will be displayed to the screen.