CD3D11_COUNTER_DESC 结构 (d3d11.h)
表示计数器,并提供用于创建计数器的便捷方法。
语法
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。
成员
实例化未初始化 CD3D11_COUNTER_DESC 结构的新实例。
void CD3D11_COUNTER_DESC ( const D3D11_COUNTER_DESC & o)
实例化 使用 D3D11_COUNTER_DESC 结构初始化的 CD3D11_COUNTER_DESC 结构的新实例。
void CD3D11_COUNTER_DESC ( D3D11_COUNTER 计数器、UINT miscFlags)
实例化 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 |