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

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

Device.CreateDepthStencilSurface メソッド

深度ステンシル リソースを作成します。

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

Public Function CreateDepthStencilSurface (
 _
    width As Integer, _
    height As Integer, _
    format As DepthFormat, _
    multiSampleType As MultiSampleType _
) As Surface
Dim instance As Device
Dim width As Integer
Dim height As Integer
Dim format As DepthFormat
Dim multiSampleType As MultiSampleType
Dim returnValue As Surface

returnValue = instance.CreateDepthStencilSurface(width, height, format, multiSampleType)
public Surface CreateDepthStencilSurface (
    int width,
    int height,
    DepthFormat format,
    MultiSampleType multiSampleType
)
public:
Surface^ CreateDepthStencilSurface (
    int width, 
    int height, 
    DepthFormat format, 
    MultiSampleType multiSampleType
)
public Surface CreateDepthStencilSurface (
    int width, 
    int height, 
    DepthFormat format, 
    MultiSampleType multiSampleType
)
public function CreateDepthStencilSurface (
    width : int, 
    height : int, 
    format : DepthFormat, 
    multiSampleType : MultiSampleType
) : Surface

パラメータ

width

深度ステンシル サーフェイスの幅 (ピクセル単位)。

height

深度ステンシル サーフェイスの高さ (ピクセル単位)。

format

深度ステンシル サーフェイスの形式を記述する、DepthFormat 列挙型のメンバ。この値は、現在のデバイスに対して列挙されている深度ステンシル形式の 1 つである必要があります。

multiSampleType

マルチサンプリング バッファ タイプを記述する MultiSampleType 列挙型のメンバ。この値は、このサーフェイスが SetRenderTarget で設定される DepthStencilSurface に渡されるときにサポートされるマルチサンプル タイプの 1 つである必要があります。

戻り値
作成された深度ステンシル サーフェイスのリソースを表す Surface。

例外例外
例外の種類条件

NotAvailableException

現在のデバイスは、照会されたマルチサンプル タイプをサポートしていません。

InvalidCallException

メソッドの呼び出しが無効です。たとえば、パラメータに無効な値が含まれている場合などです。

OutOfMemoryException

Direct3D は、呼び出しを完了するためのメモリが不足しています。

.NET Framework のセキュリティ.NET Framework のセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
Device クラス
Device メンバ
Microsoft.WindowsMobile.DirectX.Direct3D 名前空間



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

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

   

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



Device.CreateDepthStencilSurface メソッドのページの著作権

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

©2026 GRAS Group, Inc.RSS