以下是该结构的定义:
struct CD3D11_DEPTH_STENCIL_VIEW_DESC : public D3D11_DEPTH_STENCIL_VIEW_DESC
{
CD3D11_DEPTH_STENCIL_VIEW_DESC();
explicit CD3D11_DEPTH_STENCIL_VIEW_DESC(const D3D11_DEPTH_STENCIL_VIEW_DESC &o);
explicit CD3D11_DEPTH_STENCIL_VIEW_DESC(CD3D11_DEFAULT);
explicit CD3D11_DEPTH_STENCIL_VIEW_DESC(
D3D11_DSV_DIMENSION viewDimension,
DXGI_FORMAT format,
UINT mipSlice,
UINT firstArraySlice = 0,
UINT arraySize = -1,
UINT flags = 0);
explicit CD3D11_DEPTH_STENCIL_VIEW_DESC(
_In_ ID3D11Resource* pResource,
D3D11_DSV_DIMENSION viewDimension,
DXGI_FORMAT format,
UINT mipSlice,
UINT firstArraySlice = 0,
UINT arraySize = -1,
UINT flags = 0);
explicit CD3D11_DEPTH_STENCIL_VIEW_DESC(
_In_ ID3D11Resource* pResource,
UINT arrayFormat,
UINT mipSlice,
UINT firstArraySlice = 0,
UINT arraySize = -1,
UINT flags = 0);
CD3D11_DEPTH_STENCIL_VIEW_DESC& operator=(const D3D11_DEPTH_STENCIL_VIEW_DESC &o);
operator const D3D11_DEPTH_STENCIL_VIEW_DESC&() const;
};
这个结构包含了一系列构造函数,允许你以不同的方式初始化深度模板视图的描述符。通过使用这个结构,你可以更方便地创建和配置深度模板视图对象。
转载请注明出处:http://www.zyzy.cn/article/detail/25638/Win32 API/D3d11.h/CD3D11_DEPTH_STENCIL_VIEW_DESC