Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ QueryFormat()

bool Microsoft.Xna.Framework.Graphics.GraphicsAdapter.QueryFormat ( [MarshalAs(UnmanagedType.U1)] bool isBackBuffer,
_D3DDEVTYPE deviceType,
GraphicsProfile graphicsProfile,
SurfaceFormat format,
DepthFormat depthFormat,
int multiSampleCount,
out SurfaceFormat selectedFormat,
out DepthFormat selectedDepthFormat,
out int selectedMultiSampleCount )
inlinepackage

Definition at line 321 of file GraphicsAdapter.cs.

322 {
323 ProfileCapabilities instance = ProfileCapabilities.GetInstance(graphicsProfile);
326 int num2 = ((selectedFormat == format && selectedDepthFormat == depthFormat && num == multiSampleCount) ? 1 : 0);
327 return (byte)num2 != 0;
328 }
unsafe DepthFormat QueryDepthFormat(DepthFormat depthFormat, SurfaceFormat surfaceFormat, _D3DDEVTYPE deviceType, ProfileCapabilities profileCapabilities)
unsafe SurfaceFormat QuerySurfaceFormat(SurfaceFormat format, [MarshalAs(UnmanagedType.U1)] bool isBackBuffer, _D3DDEVTYPE deviceType, ProfileCapabilities profileCapabilities)
unsafe int QueryMultiSampleCount(int multiSampleCount, SurfaceFormat surfaceFormat, _D3DDEVTYPE deviceType)

References System.format, Microsoft.Xna.Framework.Graphics.ProfileCapabilities.GetInstance(), Microsoft.Xna.Framework.Graphics.GraphicsAdapter.QueryDepthFormat(), Microsoft.Xna.Framework.Graphics.GraphicsAdapter.QueryMultiSampleCount(), and Microsoft.Xna.Framework.Graphics.GraphicsAdapter.QuerySurfaceFormat().

Referenced by Microsoft.Xna.Framework.Graphics.GraphicsDevice.ConvertPresentationParametersToNative(), Microsoft.Xna.Framework.Graphics.RenderTargetCube.CreateRenderTarget(), Microsoft.Xna.Framework.Graphics.RenderTarget2D.CreateRenderTarget(), Microsoft.Xna.Framework.Graphics.GraphicsAdapter.QueryBackBufferFormat(), and Microsoft.Xna.Framework.Graphics.GraphicsAdapter.QueryRenderTargetFormat().