Format 列挙型
Format 列挙型
使用例
- 深度ステンシルのオン
さまざまな種類のサーフェイス フォーマットを定義する。
定義
Visual Basic | Public Enum Format |
C# | public enum Format |
Managed C++ | __value public enum Format |
JScript | public enum Format |
定数
定数名 | 説明 |
---|---|
G8R8G8B8 | |
R8G8B8G8 | |
CxV8U8 | |
A32B32G32R32F | |
G32R32F | |
R32F | |
A16B16G16R16F | |
G16R16F | |
R16F | |
Multi2Argb8 | |
Q16W16V16U16 | |
VertexData | |
Dxt5 | |
Dxt4 | |
Dxt3 | |
Dxt2 | |
Dxt1 | |
Yuy2 | |
Uyvy | |
A2W10V10U10 | |
V16U16 | |
Q8W8V8U8 | |
X8L8V8U8 | |
L6V5U5 | |
V8U8 | |
A4L4 | |
A8L8 | |
L8 | |
P8 | |
A8P8 | |
A16B16G16R16 | |
A2R10G10B10 | |
G16R16 | |
X8B8G8R8 | |
A8B8G8R8 | |
A2B10G10R10 | |
X4R4G4B4 | |
A8R3G3B2 | |
A8 | |
R3G3B2 | |
A4R4G4B4 | |
A1R5G5B5 | |
X1R5G5B5 | |
R5G6B5 | |
X8R8G8B8 | |
A8R8G8B8 | |
R8G8B8 | |
Unknown |
使用例
深度ステンシルのオン
この例では、深度ステンシル サーフェイスをオンにして、ステンシル フォーマットを設定する方法を示す。
- Microsoft® Direct3D® オブジェクトの PresentParameters.EnableAutoDepthStencil プロパティが TRUE の場合、Direct3D がアプリケーションの深度バッファを管理する。
- PresentParameters.AutoDepthStencilFormat ステンシル フォーマットは、Format 列挙の D16 定数を受け取ることで、16 ビットの z バッファ ビット深度に設定される。
using Microsoft.DirectX.Direct3D;
public class Lights : Form
{
// Global variables for this project
Device device = null; // Rendering device
PresentParameters presentParams = new PresentParameters();
.
.
.
public bool InitializeGraphics()
{
// 1. Turn on a depth stencil
presentParams.EnableAutoDepthStencil = true;
// 2. And the stencil format
presentParams.AutoDepthStencilFormat = Format.D16;
}
}
列挙の情報
名前空間 | Microsoft.DirectX.Direct3D |
アセンブリ | Microsoft.DirectX.Direct3D (microsoft.directx.direct3d.dll) |
厳密名 | Microsoft.DirectX.Direct3D, Version=0293, Culture=neutral, PublicKeyToken=d3231b57b74a1492 |
参照
© 2002 Microsoft Corporation. All rights reserved. Terms of use.