Manager.CheckDeviceMultiSampleType メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > Manager.CheckDeviceMultiSampleType メソッドの意味・解説 

Manager.CheckDeviceMultiSampleType メソッド

現在のデバイスでマルチサンプリング技法が使用できるかどうかを判断します。

名前空間: Microsoft.WindowsMobile.DirectX.Direct3D
アセンブリ: Microsoft.WindowsMobile.DirectX (microsoft.windowsmobile.directx.dll 内)
構文構文

Public Shared Function CheckDeviceMultiSampleType
 ( _
    adapter As Integer, _
    deviceType As DeviceType, _
    surfaceFormat As Format, _
    windowed As Boolean, _
    multiSampleType As MultiSampleType _
) As Boolean
Dim adapter As Integer
Dim deviceType As DeviceType
Dim surfaceFormat As Format
Dim windowed As Boolean
Dim multiSampleType As MultiSampleType
Dim returnValue As Boolean

returnValue = Manager.CheckDeviceMultiSampleType(adapter, deviceType, surfaceFormat,
 windowed, multiSampleType)
public static bool CheckDeviceMultiSampleType
 (
    int adapter,
    DeviceType deviceType,
    Format surfaceFormat,
    bool windowed,
    MultiSampleType multiSampleType
)
public:
static bool CheckDeviceMultiSampleType (
    int adapter, 
    DeviceType deviceType, 
    Format surfaceFormat, 
    bool windowed, 
    MultiSampleType multiSampleType
)
public static boolean CheckDeviceMultiSampleType
 (
    int adapter, 
    DeviceType deviceType, 
    Format surfaceFormat, 
    boolean windowed, 
    MultiSampleType multiSampleType
)
public static function CheckDeviceMultiSampleType
 (
    adapter : int, 
    deviceType : DeviceType, 
    surfaceFormat : Format, 
    windowed : boolean, 
    multiSampleType : MultiSampleType
) : boolean

パラメータ

adapter

照会するディスプレイ アダプタを示す序数。AdapterListCollection.Default は、常にプライマリ ディスプレイ アダプタです。

deviceType

デバイスの種類を識別する DeviceType 列挙体のメンバ。

surfaceFormat

マルチサンプリングするサーフェイスを識別する Format 列挙体のメンバ。

windowed

ウィンドウ表示のマルチサンプリングを照会する場合は true に設定します。全画面表示のマルチサンプリングを照会する場合は false に設定します。

multiSampleType

テストするマルチサンプリング技法を識別する MultiSampleType 列挙体のメンバ。

戻り値
メソッドが成功した場合は true。それ以外の場合は false。

解説解説
使用例使用例

特定のマルチサンプリング メソッドのサポートを確認する方法のコード例を次に示します。

Public Sub CheckDeviceMultiSampleType()

    ' Test some formats
    IsDeviceMultiSampleOK(DepthFormat.D16, Format.A8R8G8B8, MultiSampleType.TwoSamples)

    If result <> Fix(ResultCode.Success) Then
        System.Windows.Forms.MessageBox.Show(String.Format("The
 multisample options are invalid:  {0}", result))
    End If

End Sub 'CheckDeviceMultiSampleType

Public Function IsDeviceMultiSampleOK(ByVal
 depthFmt As DepthFormat, ByVal backbufferFmt
 As Format, ByVal multisampleType As MultiSampleType) As Boolean
    Dim ai As AdapterInformation = Microsoft.WindowsMobile.DirectX.Direct3D.Manager.Adapters.Default
    Dim qualityLevels As Integer
 = 0

    ' Verify that the render target surface supports the given multisample
 type
    If Microsoft.WindowsMobile.DirectX.Direct3D.Manager.CheckDeviceMultiSampleType(ai.Adapter,
 DeviceType.Default, backbufferFmt, False, multisampleType) Then
        ' Verify that the depth stencil surface supports the given multisample
 type
        If Microsoft.WindowsMobile.DirectX.Direct3D.Manager.CheckDeviceMultiSampleType(ai.Adapter,
 DeviceType.Default, CType(depthFmt, Format), False, multisampleType)
 Then
            Return True ' if both
 calls succeed
        End If
    End If

    Return False
    ' if either call fails.  NOTE: HRESULT passed back in result
End Function
public void CheckDeviceMultiSampleType()
{

    // Test some formats
    IsDeviceMultiSampleOK(DepthFormat.D16, Format.A8R8G8B8, MultiSampleType.TwoSamples);

    if (result != (int)ResultCode.Success)
        System.Windows.Forms.MessageBox.Show(String.Format("The multisample
 options are invalid:  {0}", result));
}

public bool IsDeviceMultiSampleOK(DepthFormat
 depthFmt, Format backbufferFmt, MultiSampleType multisampleType)
{
    AdapterInformation ai = Microsoft.WindowsMobile.DirectX.Direct3D.Manager.Adapters.Default;
    int qualityLevels = 0;

    // Verify that the render target surface supports the given multisample
 type
    if (Microsoft.WindowsMobile.DirectX.Direct3D.Manager.CheckDeviceMultiSampleType(ai.Adapter,
 DeviceType.Default, backbufferFmt, false, multisampleType))
    {
        // Verify that the depth stencil surface supports the given
 multisample type
        if (Microsoft.WindowsMobile.DirectX.Direct3D.Manager.CheckDeviceMultiSampleType(ai.Adapter,
 DeviceType.Default, (Format)depthFmt, false, multisampleType))
        {
            return true;    //
 if both calls succeed
        }
    }

    return false;   // if either
 call fails.  NOTE: HRESULT passed back in result
}
.NET Framework のセキュリティ.NET Framework のセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
Manager クラス
Manager メンバ
Microsoft.WindowsMobile.DirectX.Direct3D 名前空間


このページでは「.NET Framework クラス ライブラリ リファレンス」からManager.CheckDeviceMultiSampleType メソッドを検索した結果を表示しています。
Weblioに収録されているすべての辞書からManager.CheckDeviceMultiSampleType メソッドを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からManager.CheckDeviceMultiSampleType メソッド を検索

英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

Manager.CheckDeviceMultiSampleType メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



Manager.CheckDeviceMultiSampleType メソッドのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS