CD3D11_RASTERIZER_DESC 结构 (d3d11.h)

表示光栅器状态结构,并提供用于创建光栅器状态结构的便捷方法。

语法

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 帮助程序结构