CD3D11_TEXTURE3D_DESC 結構 (d3d11.h)
代表 3D 紋理,並提供建立 3D 紋理的便利方法。
Syntax
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。
成員
具現化未初始化 CD3D11_TEXTURE3D_DESC 結構的新實例。
void CD3D11_TEXTURE3D_DESC ( const D3D11_TEXTURE3D_DESC & o)
具現化 以 D3D11_TEXTURE3D_DESC 結構初始化之 CD3D11_TEXTURE3D_DESC 結構的新實例。
具現化使用 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 |