D3DMULTISAMPLE_TYPE
列挙型メンバー 17
| 名前 | 10進 | 16進 |
|---|---|---|
| D3DMULTISAMPLE_NONE | 0 | 0x0 |
| D3DMULTISAMPLE_NONMASKABLE | 1 | 0x1 |
| D3DMULTISAMPLE_2_SAMPLES | 2 | 0x2 |
| D3DMULTISAMPLE_3_SAMPLES | 3 | 0x3 |
| D3DMULTISAMPLE_4_SAMPLES | 4 | 0x4 |
| D3DMULTISAMPLE_5_SAMPLES | 5 | 0x5 |
| D3DMULTISAMPLE_6_SAMPLES | 6 | 0x6 |
| D3DMULTISAMPLE_7_SAMPLES | 7 | 0x7 |
| D3DMULTISAMPLE_8_SAMPLES | 8 | 0x8 |
| D3DMULTISAMPLE_9_SAMPLES | 9 | 0x9 |
| D3DMULTISAMPLE_10_SAMPLES | 10 | 0xA |
| D3DMULTISAMPLE_11_SAMPLES | 11 | 0xB |
| D3DMULTISAMPLE_12_SAMPLES | 12 | 0xC |
| D3DMULTISAMPLE_13_SAMPLES | 13 | 0xD |
| D3DMULTISAMPLE_14_SAMPLES | 14 | 0xE |
| D3DMULTISAMPLE_15_SAMPLES | 15 | 0xF |
| D3DMULTISAMPLE_16_SAMPLES | 16 | 0x10 |
公式ドキュメント
デバイスが適用できるフルシーン マルチサンプリングのレベルを定義します。
解説(Remarks)
IDirect3DDevice9::Reset 時にフルシーン マルチサンプリングを有効にすることに加えて、さまざまな側面を細かいレベルでオンまたはオフにするレンダー ステートも用意されています。
マルチサンプリングは、D3DSWAPEFFECT_DISCARD スワップ効果で作成またはリセットされるスワップ チェーンでのみ有効です。
マルチサンプル アンチエイリアシングの値は、次のメソッドのパラメーター(またはサブパラメーター)で設定できます。
| メソッド | パラメーター | サブパラメーター |
|---|---|---|
| IDirect3D9::CheckDeviceMultiSampleType | MultiSampleType および pQualityLevels | |
| IDirect3D9::CreateDevice | pPresentationParameters | MultiSampleType および pQualityLevels |
| IDirect3DDevice9::CreateAdditionalSwapChain | pPresentationParameters | MultiSampleType および pQualityLevels |
| IDirect3DDevice9::CreateDepthStencilSurface | MultiSampleType および pQualityLevels | |
| IDirect3DDevice9::CreateRenderTarget | MultiSampleType および pQualityLevels | |
| IDirect3DDevice9::Reset | pPresentationParameters | MultiSampleType および pQualityLevels |
アンチエイリアシングの品質を上げる目的で、あるマルチサンプルの種類から別の種類へ切り替えるのは良い方法ではありません。
D3DMULTISAMPLE_NONE では、破棄以外のスワップ効果や、ロックなどが可能になります。
ディスプレイ デバイスがマスク可能なマルチサンプリング(マルチサンプル レンダー ターゲット フォーマットでの複数サンプルに加えてアンチエイリアスをサポート)をサポートしているか、マスク不可能なマルチサンプリング(アンチエイリアスのサポートのみ)だけをサポートしているかにかかわらず、デバイスのドライバーは D3DMULTISAMPLE_NONMASKABLE マルチサンプルの種類に対する品質レベルの数を提供します。アンチエイリアシングの目的でのみマルチサンプリングを使用するアプリケーションは、ドライバーがサポートするマスク不可能なマルチサンプルの品質レベルの数を照会するだけで済みます。
デバイスがサポートする品質レベルは、IDirect3D9::CheckDeviceMultiSampleType の pQualityLevels パラメーターで取得できます。アプリケーションが使用する品質レベルは、IDirect3DDevice9::CreateDepthStencilSurface および IDirect3DDevice9::CreateRenderTarget の MultiSampleQuality パラメーターで設定します。
マスク可能なマルチサンプリングの説明については、D3DRS_MULTISAMPLEMASK を参照してください。
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp)
各言語での定義
列挙メンバーの定義。HSP タブは #define global(値は16進)。
typedef enum D3DMULTISAMPLE_TYPE : int {
D3DMULTISAMPLE_NONE = 0,
D3DMULTISAMPLE_NONMASKABLE = 1,
D3DMULTISAMPLE_2_SAMPLES = 2,
D3DMULTISAMPLE_3_SAMPLES = 3,
D3DMULTISAMPLE_4_SAMPLES = 4,
D3DMULTISAMPLE_5_SAMPLES = 5,
D3DMULTISAMPLE_6_SAMPLES = 6,
D3DMULTISAMPLE_7_SAMPLES = 7,
D3DMULTISAMPLE_8_SAMPLES = 8,
D3DMULTISAMPLE_9_SAMPLES = 9,
D3DMULTISAMPLE_10_SAMPLES = 10,
D3DMULTISAMPLE_11_SAMPLES = 11,
D3DMULTISAMPLE_12_SAMPLES = 12,
D3DMULTISAMPLE_13_SAMPLES = 13,
D3DMULTISAMPLE_14_SAMPLES = 14,
D3DMULTISAMPLE_15_SAMPLES = 15,
D3DMULTISAMPLE_16_SAMPLES = 16
} D3DMULTISAMPLE_TYPE;public enum D3DMULTISAMPLE_TYPE : int
{
D3DMULTISAMPLE_NONE = 0,
D3DMULTISAMPLE_NONMASKABLE = 1,
D3DMULTISAMPLE_2_SAMPLES = 2,
D3DMULTISAMPLE_3_SAMPLES = 3,
D3DMULTISAMPLE_4_SAMPLES = 4,
D3DMULTISAMPLE_5_SAMPLES = 5,
D3DMULTISAMPLE_6_SAMPLES = 6,
D3DMULTISAMPLE_7_SAMPLES = 7,
D3DMULTISAMPLE_8_SAMPLES = 8,
D3DMULTISAMPLE_9_SAMPLES = 9,
D3DMULTISAMPLE_10_SAMPLES = 10,
D3DMULTISAMPLE_11_SAMPLES = 11,
D3DMULTISAMPLE_12_SAMPLES = 12,
D3DMULTISAMPLE_13_SAMPLES = 13,
D3DMULTISAMPLE_14_SAMPLES = 14,
D3DMULTISAMPLE_15_SAMPLES = 15,
D3DMULTISAMPLE_16_SAMPLES = 16,
}Public Enum D3DMULTISAMPLE_TYPE As Integer
D3DMULTISAMPLE_NONE = 0
D3DMULTISAMPLE_NONMASKABLE = 1
D3DMULTISAMPLE_2_SAMPLES = 2
D3DMULTISAMPLE_3_SAMPLES = 3
D3DMULTISAMPLE_4_SAMPLES = 4
D3DMULTISAMPLE_5_SAMPLES = 5
D3DMULTISAMPLE_6_SAMPLES = 6
D3DMULTISAMPLE_7_SAMPLES = 7
D3DMULTISAMPLE_8_SAMPLES = 8
D3DMULTISAMPLE_9_SAMPLES = 9
D3DMULTISAMPLE_10_SAMPLES = 10
D3DMULTISAMPLE_11_SAMPLES = 11
D3DMULTISAMPLE_12_SAMPLES = 12
D3DMULTISAMPLE_13_SAMPLES = 13
D3DMULTISAMPLE_14_SAMPLES = 14
D3DMULTISAMPLE_15_SAMPLES = 15
D3DMULTISAMPLE_16_SAMPLES = 16
End Enumimport enum
class D3DMULTISAMPLE_TYPE(enum.IntEnum):
D3DMULTISAMPLE_NONE = 0
D3DMULTISAMPLE_NONMASKABLE = 1
D3DMULTISAMPLE_2_SAMPLES = 2
D3DMULTISAMPLE_3_SAMPLES = 3
D3DMULTISAMPLE_4_SAMPLES = 4
D3DMULTISAMPLE_5_SAMPLES = 5
D3DMULTISAMPLE_6_SAMPLES = 6
D3DMULTISAMPLE_7_SAMPLES = 7
D3DMULTISAMPLE_8_SAMPLES = 8
D3DMULTISAMPLE_9_SAMPLES = 9
D3DMULTISAMPLE_10_SAMPLES = 10
D3DMULTISAMPLE_11_SAMPLES = 11
D3DMULTISAMPLE_12_SAMPLES = 12
D3DMULTISAMPLE_13_SAMPLES = 13
D3DMULTISAMPLE_14_SAMPLES = 14
D3DMULTISAMPLE_15_SAMPLES = 15
D3DMULTISAMPLE_16_SAMPLES = 16// D3DMULTISAMPLE_TYPE
pub const D3DMULTISAMPLE_NONE: i32 = 0;
pub const D3DMULTISAMPLE_NONMASKABLE: i32 = 1;
pub const D3DMULTISAMPLE_2_SAMPLES: i32 = 2;
pub const D3DMULTISAMPLE_3_SAMPLES: i32 = 3;
pub const D3DMULTISAMPLE_4_SAMPLES: i32 = 4;
pub const D3DMULTISAMPLE_5_SAMPLES: i32 = 5;
pub const D3DMULTISAMPLE_6_SAMPLES: i32 = 6;
pub const D3DMULTISAMPLE_7_SAMPLES: i32 = 7;
pub const D3DMULTISAMPLE_8_SAMPLES: i32 = 8;
pub const D3DMULTISAMPLE_9_SAMPLES: i32 = 9;
pub const D3DMULTISAMPLE_10_SAMPLES: i32 = 10;
pub const D3DMULTISAMPLE_11_SAMPLES: i32 = 11;
pub const D3DMULTISAMPLE_12_SAMPLES: i32 = 12;
pub const D3DMULTISAMPLE_13_SAMPLES: i32 = 13;
pub const D3DMULTISAMPLE_14_SAMPLES: i32 = 14;
pub const D3DMULTISAMPLE_15_SAMPLES: i32 = 15;
pub const D3DMULTISAMPLE_16_SAMPLES: i32 = 16;// D3DMULTISAMPLE_TYPE
const (
D3DMULTISAMPLE_NONE int32 = 0
D3DMULTISAMPLE_NONMASKABLE int32 = 1
D3DMULTISAMPLE_2_SAMPLES int32 = 2
D3DMULTISAMPLE_3_SAMPLES int32 = 3
D3DMULTISAMPLE_4_SAMPLES int32 = 4
D3DMULTISAMPLE_5_SAMPLES int32 = 5
D3DMULTISAMPLE_6_SAMPLES int32 = 6
D3DMULTISAMPLE_7_SAMPLES int32 = 7
D3DMULTISAMPLE_8_SAMPLES int32 = 8
D3DMULTISAMPLE_9_SAMPLES int32 = 9
D3DMULTISAMPLE_10_SAMPLES int32 = 10
D3DMULTISAMPLE_11_SAMPLES int32 = 11
D3DMULTISAMPLE_12_SAMPLES int32 = 12
D3DMULTISAMPLE_13_SAMPLES int32 = 13
D3DMULTISAMPLE_14_SAMPLES int32 = 14
D3DMULTISAMPLE_15_SAMPLES int32 = 15
D3DMULTISAMPLE_16_SAMPLES int32 = 16
)const
D3DMULTISAMPLE_NONE = 0;
D3DMULTISAMPLE_NONMASKABLE = 1;
D3DMULTISAMPLE_2_SAMPLES = 2;
D3DMULTISAMPLE_3_SAMPLES = 3;
D3DMULTISAMPLE_4_SAMPLES = 4;
D3DMULTISAMPLE_5_SAMPLES = 5;
D3DMULTISAMPLE_6_SAMPLES = 6;
D3DMULTISAMPLE_7_SAMPLES = 7;
D3DMULTISAMPLE_8_SAMPLES = 8;
D3DMULTISAMPLE_9_SAMPLES = 9;
D3DMULTISAMPLE_10_SAMPLES = 10;
D3DMULTISAMPLE_11_SAMPLES = 11;
D3DMULTISAMPLE_12_SAMPLES = 12;
D3DMULTISAMPLE_13_SAMPLES = 13;
D3DMULTISAMPLE_14_SAMPLES = 14;
D3DMULTISAMPLE_15_SAMPLES = 15;
D3DMULTISAMPLE_16_SAMPLES = 16;// D3DMULTISAMPLE_TYPE
pub const D3DMULTISAMPLE_NONE: i32 = 0;
pub const D3DMULTISAMPLE_NONMASKABLE: i32 = 1;
pub const D3DMULTISAMPLE_2_SAMPLES: i32 = 2;
pub const D3DMULTISAMPLE_3_SAMPLES: i32 = 3;
pub const D3DMULTISAMPLE_4_SAMPLES: i32 = 4;
pub const D3DMULTISAMPLE_5_SAMPLES: i32 = 5;
pub const D3DMULTISAMPLE_6_SAMPLES: i32 = 6;
pub const D3DMULTISAMPLE_7_SAMPLES: i32 = 7;
pub const D3DMULTISAMPLE_8_SAMPLES: i32 = 8;
pub const D3DMULTISAMPLE_9_SAMPLES: i32 = 9;
pub const D3DMULTISAMPLE_10_SAMPLES: i32 = 10;
pub const D3DMULTISAMPLE_11_SAMPLES: i32 = 11;
pub const D3DMULTISAMPLE_12_SAMPLES: i32 = 12;
pub const D3DMULTISAMPLE_13_SAMPLES: i32 = 13;
pub const D3DMULTISAMPLE_14_SAMPLES: i32 = 14;
pub const D3DMULTISAMPLE_15_SAMPLES: i32 = 15;
pub const D3DMULTISAMPLE_16_SAMPLES: i32 = 16;const
D3DMULTISAMPLE_NONE* = 0
D3DMULTISAMPLE_NONMASKABLE* = 1
D3DMULTISAMPLE_2_SAMPLES* = 2
D3DMULTISAMPLE_3_SAMPLES* = 3
D3DMULTISAMPLE_4_SAMPLES* = 4
D3DMULTISAMPLE_5_SAMPLES* = 5
D3DMULTISAMPLE_6_SAMPLES* = 6
D3DMULTISAMPLE_7_SAMPLES* = 7
D3DMULTISAMPLE_8_SAMPLES* = 8
D3DMULTISAMPLE_9_SAMPLES* = 9
D3DMULTISAMPLE_10_SAMPLES* = 10
D3DMULTISAMPLE_11_SAMPLES* = 11
D3DMULTISAMPLE_12_SAMPLES* = 12
D3DMULTISAMPLE_13_SAMPLES* = 13
D3DMULTISAMPLE_14_SAMPLES* = 14
D3DMULTISAMPLE_15_SAMPLES* = 15
D3DMULTISAMPLE_16_SAMPLES* = 16enum D3DMULTISAMPLE_TYPE : int {
D3DMULTISAMPLE_NONE = 0,
D3DMULTISAMPLE_NONMASKABLE = 1,
D3DMULTISAMPLE_2_SAMPLES = 2,
D3DMULTISAMPLE_3_SAMPLES = 3,
D3DMULTISAMPLE_4_SAMPLES = 4,
D3DMULTISAMPLE_5_SAMPLES = 5,
D3DMULTISAMPLE_6_SAMPLES = 6,
D3DMULTISAMPLE_7_SAMPLES = 7,
D3DMULTISAMPLE_8_SAMPLES = 8,
D3DMULTISAMPLE_9_SAMPLES = 9,
D3DMULTISAMPLE_10_SAMPLES = 10,
D3DMULTISAMPLE_11_SAMPLES = 11,
D3DMULTISAMPLE_12_SAMPLES = 12,
D3DMULTISAMPLE_13_SAMPLES = 13,
D3DMULTISAMPLE_14_SAMPLES = 14,
D3DMULTISAMPLE_15_SAMPLES = 15,
D3DMULTISAMPLE_16_SAMPLES = 16,
}#define global D3DMULTISAMPLE_NONE 0x0
#define global D3DMULTISAMPLE_NONMASKABLE 0x1
#define global D3DMULTISAMPLE_2_SAMPLES 0x2
#define global D3DMULTISAMPLE_3_SAMPLES 0x3
#define global D3DMULTISAMPLE_4_SAMPLES 0x4
#define global D3DMULTISAMPLE_5_SAMPLES 0x5
#define global D3DMULTISAMPLE_6_SAMPLES 0x6
#define global D3DMULTISAMPLE_7_SAMPLES 0x7
#define global D3DMULTISAMPLE_8_SAMPLES 0x8
#define global D3DMULTISAMPLE_9_SAMPLES 0x9
#define global D3DMULTISAMPLE_10_SAMPLES 0xA
#define global D3DMULTISAMPLE_11_SAMPLES 0xB
#define global D3DMULTISAMPLE_12_SAMPLES 0xC
#define global D3DMULTISAMPLE_13_SAMPLES 0xD
#define global D3DMULTISAMPLE_14_SAMPLES 0xE
#define global D3DMULTISAMPLE_15_SAMPLES 0xF
#define global D3DMULTISAMPLE_16_SAMPLES 0x10