共用方式為


CD3D11_COUNTER_DESC 結構 (d3d11.h)

表示計數器,並提供建立計數器的便利方法。

Syntax

struct CD3D11_COUNTER_DESC : D3D11_COUNTER_DESC {
  void CD3D11_COUNTER_DESC();
  void CD3D11_COUNTER_DESC(
    const D3D11_COUNTER_DESC & o
  );
  void CD3D11_COUNTER_DESC(
    D3D11_COUNTER counter,
    UINT          miscFlags
  );
  void ~CD3D11_COUNTER_DESC();
};

繼承

CD3D11_COUNTER_DESC 結構會實作D3D11_COUNTER_DESC。

成員

void CD3D11_COUNTER_DESC ()

具現化未初始化 CD3D11_COUNTER_DESC 結構的新實例。

void CD3D11_COUNTER_DESC ( const D3D11_COUNTER_DESC & o)

具現化 使用 D3D11_COUNTER_DESC 結構初始化之 CD3D11_COUNTER_DESC 結構的新實例。

void CD3D11_COUNTER_DESC ( D3D11_COUNTER counter, UINT miscFlags)

具現化以計數器資訊初始化 之CD3D11_COUNTER_DESC 結構的新實例。

void ~CD3D11_COUNTER_DESC ()

終結 CD3D11_COUNTER_DESC 結構的實例。

備註

以下是 D3D11.h 定義 CD3D11_COUNTER_DESC的方式:

struct CD3D11_COUNTER_DESC : public D3D11_COUNTER_DESC
{
    CD3D11_COUNTER_DESC()
    {}
    explicit CD3D11_COUNTER_DESC( const D3D11_COUNTER_DESC& o ) :
        D3D11_COUNTER_DESC( o )
    {}
    explicit CD3D11_COUNTER_DESC(
        D3D11_COUNTER counter,
        UINT miscFlags = 0 )
    {
        Counter = counter;
        MiscFlags = miscFlags;
    }
    ~CD3D11_COUNTER_DESC() {}
    operator const D3D11_COUNTER_DESC&() const { return *this; }
};

規格需求

需求
最低支援的用戶端 Windows 7 [傳統型應用程式 |UWP 應用程式]
最低支援的伺服器 Windows Server 2008 R2 [傳統型應用程式 |UWP 應用程式]
標頭 d3d11.h

另請參閱

CD3D11 協助程序結構