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

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

Manager.CheckDeviceFormat メソッド

サーフェイス形式が、現在のアダプタを表すデバイス上で、指定されたリソースの種類として使用でき、さらにテクスチャ、深度ステンシル バッファ、レンダリング先、またはこの 3 つの任意の組み合わせとして使用できるかどうかを判断します。

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

Public Shared Function CheckDeviceFormat
 ( _
    adapter As Integer, _
    deviceType As DeviceType, _
    adapterFormat As Format, _
    usage As Usage, _
    resourceType As ResourceType, _
    checkFormat As Format _
) As Boolean
Dim adapter As Integer
Dim deviceType As DeviceType
Dim adapterFormat As Format
Dim usage As Usage
Dim resourceType As ResourceType
Dim checkFormat As Format
Dim returnValue As Boolean

returnValue = Manager.CheckDeviceFormat(adapter, deviceType, adapterFormat, usage,
 resourceType, checkFormat)
public static bool CheckDeviceFormat
 (
    int adapter,
    DeviceType deviceType,
    Format adapterFormat,
    Usage usage,
    ResourceType resourceType,
    Format checkFormat
)
public:
static bool CheckDeviceFormat (
    int adapter, 
    DeviceType deviceType, 
    Format adapterFormat, 
    Usage usage, 
    ResourceType resourceType, 
    Format checkFormat
)
public static boolean CheckDeviceFormat (
    int adapter, 
    DeviceType deviceType, 
    Format adapterFormat, 
    Usage usage, 
    ResourceType resourceType, 
    Format checkFormat
)
public static function CheckDeviceFormat
 (
    adapter : int, 
    deviceType : DeviceType, 
    adapterFormat : Format, 
    usage : Usage, 
    resourceType : ResourceType, 
    checkFormat : Format
) : boolean

パラメータ

adapter

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

deviceType

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

adapterFormat

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

usage

サーフェイスに対して要求された使用オプション。使用オプションは、Usage 列挙値を任意に組み合わせたものです (CheckDeviceFormat には Usage 値のサブセットのみが有効)。詳細については、「Usage」を参照してください。

resourceType

照会された形式で使用するように要求された ResourceType。

checkFormat

使用できるサーフェイス形式を識別する、usage で定義される Format 列挙体のメンバ。

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

使用例使用例

特定のテクスチャ形式がデバイス上でサポートされているかどうかを判断する方法のコード例を次に示します。

' 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.CheckDeviceFormat メソッド」の関連用語

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

   

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



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

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

©2026 GRAS Group, Inc.RSS