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 名前空間


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

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「Manager.CheckDeviceFormat メソッド」の関連用語

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

   

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



Manager.CheckDeviceFormat メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS