ラスタライザー状態構造を表し、ラスタライザー状態構造を作成するための便利な方法を提供します。
構文
struct CD3D11_RASTERIZER_DESC : D3D11_RASTERIZER_DESC {
void CD3D11_RASTERIZER_DESC();
void CD3D11_RASTERIZER_DESC(
const D3D11_RASTERIZER_DESC & o
);
void CD3D11_RASTERIZER_DESC(
CD3D11_DEFAULT unnamedParam1
);
void CD3D11_RASTERIZER_DESC(
D3D11_FILL_MODE fillMode,
D3D11_CULL_MODE cullMode,
BOOL frontCounterClockwise,
INT depthBias,
FLOAT depthBiasClamp,
FLOAT slopeScaledDepthBias,
BOOL depthClipEnable,
BOOL scissorEnable,
BOOL multisampleEnable,
BOOL antialiasedLineEnable
);
void ~CD3D11_RASTERIZER_DESC();
};
継承
CD3D11_RASTERIZER_DESC構造体は、D3D11_RASTERIZER_DESCを実装します。
メンバー
初期化されていないCD3D11_RASTERIZER_DESC構造体の新しいインスタンス を インスタンス化します。
void CD3D11_RASTERIZER_DESC( const D3D11_RASTERIZER_DESC & o)
D3D11_RASTERIZER_DESC構造体で初期化されるCD3D11_RASTERIZER_DESC構造体の新しいインスタンスをインスタンス化します。
void CD3D11_RASTERIZER_DESC( CD3D11_DEFAULT unnamedParam1)
既定のラスタライザー状態値で初期化された CD3D11_RASTERIZER_DESC 構造体の新しいインスタンスをインスタンス化します。
D3D11_RASTERIZER_DESC値で初期化される CD3D11_RASTERIZER_DESC 構造体の新しいインスタンス を インスタンス化します。
void ~CD3D11_RASTERIZER_DESC()
CD3D11_RASTERIZER_DESC構造体のインスタンスを破棄します。
注釈
D3D11.h が CD3D11_RASTERIZER_DESCを定義する方法を次に示します。
struct CD3D11_RASTERIZER_DESC : public D3D11_RASTERIZER_DESC
{
CD3D11_RASTERIZER_DESC()
{}
explicit CD3D11_RASTERIZER_DESC( const D3D11_RASTERIZER_DESC& o ) :
D3D11_RASTERIZER_DESC( o )
{}
explicit CD3D11_RASTERIZER_DESC( CD3D11_DEFAULT )
{
FillMode = D3D11_FILL_SOLID;
CullMode = D3D11_CULL_BACK;
FrontCounterClockwise = FALSE;
DepthBias = D3D11_DEFAULT_DEPTH_BIAS;
DepthBiasClamp = D3D11_DEFAULT_DEPTH_BIAS_CLAMP;
SlopeScaledDepthBias = D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS;
DepthClipEnable = TRUE;
ScissorEnable = FALSE;
MultisampleEnable = FALSE;
AntialiasedLineEnable = FALSE;
}
explicit CD3D11_RASTERIZER_DESC(
D3D11_FILL_MODE fillMode,
D3D11_CULL_MODE cullMode,
BOOL frontCounterClockwise,
INT depthBias,
FLOAT depthBiasClamp,
FLOAT slopeScaledDepthBias,
BOOL depthClipEnable,
BOOL scissorEnable,
BOOL multisampleEnable,
BOOL antialiasedLineEnable )
{
FillMode = fillMode;
CullMode = cullMode;
FrontCounterClockwise = frontCounterClockwise;
DepthBias = depthBias;
DepthBiasClamp = depthBiasClamp;
SlopeScaledDepthBias = slopeScaledDepthBias;
DepthClipEnable = depthClipEnable;
ScissorEnable = scissorEnable;
MultisampleEnable = multisampleEnable;
AntialiasedLineEnable = antialiasedLineEnable;
}
~CD3D11_RASTERIZER_DESC() {}
operator const D3D11_RASTERIZER_DESC&() const { return *this; }
};
|
要件
| 要件 | 値 |
|---|---|
| サポートされている最小のクライアント | Windows 7 [デスクトップ アプリ |UWP アプリ] |
| サポートされている最小のサーバー | Windows Server 2008 R2 [デスクトップ アプリ |UWP アプリ] |
| Header | d3d11.h |