/// <summary> /// Initializes a new instance of the <see cref="FormatSupportInfo"/> class. /// </summary> /// <param name="format">The format being queried.</param> /// <param name="formatSupport">The format support.</param> /// <param name="computeSupport">The compute support.</param> /// <param name="multisampleMax">The multisample maximum.</param> public FormatSupportInfo(BufferFormat format, D3D11.FormatSupport formatSupport, D3D11.ComputeShaderFormatSupport computeSupport, GorgonMultisampleInfo multisampleMax) { Format = format; FormatSupport = (BufferFormatSupport)formatSupport; ComputeSupport = (ComputeShaderFormatSupport)computeSupport; MaxMultisampleCountQuality = multisampleMax; }
/// <summary> /// Function to convert a <see cref="GorgonMultisampleInfo"/> to a DXGI multi sample description. /// </summary> /// <param name="samplingInfo">The Gorgon multi sample info to convert.</param> /// <returns>The DXGI multi sample description.</returns> public static SampleDescription ToSampleDesc(this GorgonMultisampleInfo samplingInfo) => new SampleDescription(samplingInfo.Count, samplingInfo.Quality);