Win32 API 日本語リファレンス
ホームGraphics.Direct3D9 › D3DMULTISAMPLE_TYPE

D3DMULTISAMPLE_TYPE

列挙型
基底型i4

メンバー 17

名前10進16進
D3DMULTISAMPLE_NONE00x0
D3DMULTISAMPLE_NONMASKABLE10x1
D3DMULTISAMPLE_2_SAMPLES20x2
D3DMULTISAMPLE_3_SAMPLES30x3
D3DMULTISAMPLE_4_SAMPLES40x4
D3DMULTISAMPLE_5_SAMPLES50x5
D3DMULTISAMPLE_6_SAMPLES60x6
D3DMULTISAMPLE_7_SAMPLES70x7
D3DMULTISAMPLE_8_SAMPLES80x8
D3DMULTISAMPLE_9_SAMPLES90x9
D3DMULTISAMPLE_10_SAMPLES100xA
D3DMULTISAMPLE_11_SAMPLES110xB
D3DMULTISAMPLE_12_SAMPLES120xC
D3DMULTISAMPLE_13_SAMPLES130xD
D3DMULTISAMPLE_14_SAMPLES140xE
D3DMULTISAMPLE_15_SAMPLES150xF
D3DMULTISAMPLE_16_SAMPLES160x10

公式ドキュメント

デバイスが適用できるフルシーン マルチサンプリングのレベルを定義します。

解説(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 の Win32 API ドキュメント(MicrosoftDocs/sdk-api)を日本語に翻訳・改変したものです。© Microsoft Corporation. CC BY 4.0 で提供。
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 Enum
import 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* = 16
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,
}
#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