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

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

Manager.CheckDepthStencilMatch メソッド

特定の表示モードでのレンダリング先形式に対して、深度ステンシル形式が互換性があるかどうかを判断します。

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

Public Shared Function CheckDepthStencilMatch
 ( _
    adapter As Integer, _
    deviceType As DeviceType, _
    adapterFormat As Format, _
    renderTargetFormat As Format, _
    depthStencilFormat As DepthFormat _
) As Boolean
Dim adapter As Integer
Dim deviceType As DeviceType
Dim adapterFormat As Format
Dim renderTargetFormat As Format
Dim depthStencilFormat As DepthFormat
Dim returnValue As Boolean

returnValue = Manager.CheckDepthStencilMatch(adapter, deviceType, adapterFormat,
 renderTargetFormat, depthStencilFormat)
public static bool CheckDepthStencilMatch
 (
    int adapter,
    DeviceType deviceType,
    Format adapterFormat,
    Format renderTargetFormat,
    DepthFormat depthStencilFormat
)
public:
static bool CheckDepthStencilMatch (
    int adapter, 
    DeviceType deviceType, 
    Format adapterFormat, 
    Format renderTargetFormat, 
    DepthFormat depthStencilFormat
)
public static boolean CheckDepthStencilMatch
 (
    int adapter, 
    DeviceType deviceType, 
    Format adapterFormat, 
    Format renderTargetFormat, 
    DepthFormat depthStencilFormat
)
public static function CheckDepthStencilMatch
 (
    adapter : int, 
    deviceType : DeviceType, 
    adapterFormat : Format, 
    renderTargetFormat : Format, 
    depthStencilFormat : DepthFormat
) : boolean

パラメータ

adapter

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

deviceType

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

adapterFormat

アダプタが設定される表示モードの形式を識別する Format 列挙体のメンバ。

renderTargetFormat

テストするレンダリング先のサーフェイスの形式を識別する Format 列挙体のメンバ。

depthStencilFormat

テストする深度ステンシル サーフェイスの形式を識別する DepthFormat 列挙体のメンバ。

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

解説解説
使用例使用例

CheckDeviceFormat メソッドを使用して深度ステンシル形式を検証する方法のコード例を次に示します。

' check support for a Format.A16B16R16F render target
If Not Microsoft.WindowsMobile.DirectX.Direct3D.Manager.CheckDeviceFormat(0,
 DeviceType.Default, Format.A1R5G5B5, Usage.RenderTarget, ResourceType.BackBuffer,
 Format.A1R5G5B5) Then
    MsgBox("Supported")
End If
// check support for a Format.A16B16R16F render target
if (!Microsoft.WindowsMobile.DirectX.Direct3D.Manager.CheckDeviceFormat(0,
 DeviceType.Default, Format.A1R5G5B5,
                                  Usage.RenderTarget, ResourceType.BackBuffer,
                                  Format.A1R5G5B5))
    MessageBox.Show("Supported");
.NET Framework のセキュリティ.NET Framework のセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
Manager クラス
Manager メンバ
Microsoft.WindowsMobile.DirectX.Direct3D 名前空間



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2026 GRAS Group, Inc.RSS