Partager via


CD3D11_RASTERIZER_DESC structure (d3d11.h)

Représente une structure de rastériseur-état et fournit des méthodes pratiques pour créer des structures de rastériseur-état.

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();
};

Héritage

La structure CD3D11_RASTERIZER_DESC implémente D3D11_RASTERIZER_DESC.

Membres

void CD3D11_RASTERIZER_DESC()

Instancie une nouvelle instance d’une structure de CD3D11_RASTERIZER_DESC non initialisée.

void CD3D11_RASTERIZER_DESC( const D3D11_RASTERIZER_DESC & o)

Instancie une nouvelle instance d’une structure CD3D11_RASTERIZER_DESC initialisée avec une structure D3D11_RASTERIZER_DESC.

void CD3D11_RASTERIZER_DESC( CD3D11_DEFAULT unnamedParam1)

Instancie une nouvelle instance d’une structure CD3D11_RASTERIZER_DESC initialisée avec des valeurs d’état de rastériseur par défaut.

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)

Instancie une nouvelle instance d’une structure CD3D11_RASTERIZER_DESC initialisée avec des valeurs D3D11_RASTERIZER_DESC.

void ~CD3D11_RASTERIZER_DESC()

Détruit une instance d’une structure CD3D11_RASTERIZER_DESC.

Remarques

Voici comment D3D11.h définit 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; }
};

Configuration requise

Condition requise Valeur
Client minimal pris en charge Windows 7 [applications de bureau | Applications UWP]
Serveur minimal pris en charge Windows Server 2008 R2 [applications de bureau | Applications UWP]
En-tête d3d11.h

Voir aussi

Structures d’assistance CD3D11