Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Represents a rasterizer-state structure and provides convenience methods for creating rasterizer-state structures.
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();
};
Inheritance
The CD3D11_RASTERIZER_DESC structure implements D3D11_RASTERIZER_DESC.
Members
Instantiates a new instance of an uninitialized CD3D11_RASTERIZER_DESC structure.
void CD3D11_RASTERIZER_DESC( const D3D11_RASTERIZER_DESC & o)
Instantiates a new instance of a CD3D11_RASTERIZER_DESC structure that is initialized with a D3D11_RASTERIZER_DESC structure.
void CD3D11_RASTERIZER_DESC( CD3D11_DEFAULT unnamedParam1)
Instantiates a new instance of a CD3D11_RASTERIZER_DESC structure that is initialized with default rasterizer-state values.
Instantiates a new instance of a CD3D11_RASTERIZER_DESC structure that is initialized with D3D11_RASTERIZER_DESC values.
void ~CD3D11_RASTERIZER_DESC()
Destroys an instance of a CD3D11_RASTERIZER_DESC structure.
Remarks
Here is how D3D11.h defines 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; }
};
 | 
Requirements
| Requirement | Value | 
|---|---|
| Minimum supported client | Windows 7 [desktop apps | UWP apps] | 
| Minimum supported server | Windows Server 2008 R2 [desktop apps | UWP apps] | 
| Header | d3d11.h |