CD3D11_TEXTURE3D_DESC 结构 (d3d11.h)

表示 3D 纹理,并提供用于创建 3D 纹理的便捷方法。

语法

struct CD3D11_TEXTURE3D_DESC : D3D11_TEXTURE3D_DESC {
  void CD3D11_TEXTURE3D_DESC();
  void CD3D11_TEXTURE3D_DESC(
    const D3D11_TEXTURE3D_DESC & o
  );
  void CD3D11_TEXTURE3D_DESC(
    DXGI_FORMAT format,
    UINT        width,
    UINT        height,
    UINT        depth,
    UINT        mipLevels,
    UINT        bindFlags,
    D3D11_USAGE usage,
    UINT        cpuaccessFlags,
    UINT        miscFlags
  );
  void ~CD3D11_TEXTURE3D_DESC();
};

继承

CD3D11_TEXTURE3D_DESC结构实现D3D11_TEXTURE3D_DESC。

成员

void CD3D11_TEXTURE3D_DESC ()

实例化未初始化 的 CD3D11_TEXTURE3D_DESC 结构的新实例。

void CD3D11_TEXTURE3D_DESC ( const D3D11_TEXTURE3D_DESC & o)

实例化 使用 D3D11_TEXTURE3D_DESC 结构初始化的 CD3D11_TEXTURE3D_DESC 结构的新实例。

void CD3D11_TEXTURE3D_DESC ( DXGI_FORMAT 格式、UINT 宽度、UINT 高度、UINT 深度、UINT mipLevels、UINT bindFlags、D3D11_USAGE用法、UINT cpuaccessFlags、UINT miscFlags)

实例化使用D3D11_TEXTURE3D_DESC值初始化的 CD3D11_TEXTURE3D_DESC 结构的新实例。

void ~CD3D11_TEXTURE3D_DESC ()

销毁 CD3D11_TEXTURE3D_DESC 结构的实例。

注解

下面是 D3D11.h 定义 CD3D11_TEXTURE3D_DESC的方式:

struct CD3D11_TEXTURE3D_DESC : public D3D11_TEXTURE3D_DESC
{
    CD3D11_TEXTURE3D_DESC()
    {}
    explicit CD3D11_TEXTURE3D_DESC( const D3D11_TEXTURE3D_DESC& o ) :
        D3D11_TEXTURE3D_DESC( o )
    {}
    explicit CD3D11_TEXTURE3D_DESC(
        DXGI_FORMAT format,
        UINT width,
        UINT height,
        UINT depth,
        UINT mipLevels = 0,
        UINT bindFlags = D3D11_BIND_SHADER_RESOURCE,
        D3D11_USAGE usage = D3D11_USAGE_DEFAULT,
        UINT cpuaccessFlags = 0,
        UINT miscFlags = 0 )
    {
        Width = width;
        Height = height;
        Depth = depth;
        MipLevels = mipLevels;
        Format = format;
        Usage = usage;
        BindFlags = bindFlags;
        CPUAccessFlags = cpuaccessFlags;
        MiscFlags = miscFlags;
    }
    ~CD3D11_TEXTURE3D_DESC() {}
    operator const D3D11_TEXTURE3D_DESC&() const { return *this; }
};

要求

   
最低受支持的客户端 Windows 7 [桌面应用 |UWP 应用]
最低受支持的服务器 Windows Server 2008 R2 [桌面应用 |UWP 应用]
标头 d3d11.h

另请参阅

CD3D11 帮助程序结构