共用方式為


CD3D11_RASTERIZER_DESC 結構 (d3d11.h)

表示點陣化程序狀態結構,並提供建立點陣化狀態結構的便利方法。

Syntax

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。

成員

void CD3D11_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 結構的新實例。

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)

具現化以 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 應用程式]
標頭 d3d11.h

另請參閱

CD3D11 協助程序結構