Skip to content

Latest commit

 

History

History
112 lines (79 loc) · 5.67 KB

ns-d3d11_3-d3d11_texture3d_desc1.md

File metadata and controls

112 lines (79 loc) · 5.67 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NS:d3d11_3.D3D11_TEXTURE3D_DESC1
D3D11_TEXTURE3D_DESC1 (d3d11_3.h)
Describes a 3D texture. (D3D11_TEXTURE3D_DESC1)
CD3D11_TEXTURE3D_DESC1
D3D11_TEXTURE3D_DESC1
D3D11_TEXTURE3D_DESC1 structure [Direct3D 11]
d3d11_3/D3D11_TEXTURE3D_DESC1
direct3d11.d3d11_texture3d_desc1
direct3d11\d3d11_texture3d_desc1.htm
direct3d11
DC20371E-6675-4AAC-A7F6-DC523BB8DBF6
12/05/2018
CD3D11_TEXTURE3D_DESC1, D3D11_TEXTURE3D_DESC1, D3D11_TEXTURE3D_DESC1 structure [Direct3D 11], d3d11_3/D3D11_TEXTURE3D_DESC1, direct3d11.d3d11_texture3d_desc1
d3d11_3.h
Windows
Windows
D3D11_TEXTURE3D_DESC1
19H1
D3D11_TEXTURE3D_DESC1
d3d11_3/D3D11_TEXTURE3D_DESC1
c++
APIRef
kbSyntax
HeaderDef
D3D11_3.h
D3D11_TEXTURE3D_DESC1

-description

Describes a 3D texture.

-struct-fields

-field Width

Texture width (in texels). The range is from 1 to D3D11_REQ_TEXTURE3D_U_V_OR_W_DIMENSION (2048). However, the range is actually constrained by the feature level at which you create the rendering device. For more information about restrictions, see Remarks.

-field Height

Texture height (in texels). The range is from 1 to D3D11_REQ_TEXTURE3D_U_V_OR_W_DIMENSION (2048). However, the range is actually constrained by the feature level at which you create the rendering device. For more information about restrictions, see Remarks.

-field Depth

Texture depth (in texels). The range is from 1 to D3D11_REQ_TEXTURE3D_U_V_OR_W_DIMENSION (2048). However, the range is actually constrained by the feature level at which you create the rendering device. For more information about restrictions, see Remarks.

-field MipLevels

The maximum number of mipmap levels in the texture. See the remarks in D3D11_TEX1D_SRV. Use 1 for a multisampled texture; or 0 to generate a full set of subtextures.

-field Format

Texture format (see DXGI_FORMAT).

-field Usage

Value that identifies how the texture is to be read from and written to. The most common value is D3D11_USAGE_DEFAULT; see D3D11_USAGE for all possible values.

-field BindFlags

Flags (see D3D11_BIND_FLAG) for binding to pipeline stages. The flags can be combined by a bitwise OR.

-field CPUAccessFlags

Flags (see D3D11_CPU_ACCESS_FLAG) to specify the types of CPU access allowed. Use 0 if CPU access is not required. These flags can be combined with a bitwise OR.

-field MiscFlags

Flags (see D3D11_RESOURCE_MISC_FLAG) that identify other, less common resource options. Use 0 if none of these flags apply. These flags can be combined with a bitwise OR.

-field TextureLayout

A D3D11_TEXTURE_LAYOUT-typed value that identifies the layout of the texture.

The TextureLayout parameter selects both the actual layout of the texture in memory and the layout visible to the application while the texture is mapped. These flags may not be requested without CPU access also requested.

It is illegal to set CPU access flags on default textures without also setting Layout to a value other than D3D11_TEXTURE_LAYOUT_UNDEFINED.

D3D11_TEXTURE_LAYOUT_ROW_MAJOR may not be used with 3D textures. D3D11_TEXTURE_LAYOUT_64K_STANDARD_SWIZZLE may not be used with 3D textures that have mipmaps.

-remarks

This structure is used in a call to ID3D11Device3::CreateTexture3D1.

In addition to this structure, you can also use the CD3D11_TEXTURE3D_DESC1 derived structure, which is defined in D3D11_3.h and behaves like an inherited class, to help create a texture description.

The device restricts the size of subsampled, block compressed, and bit format resources to be multiples of sizes specific to each format.

The texture size range is determined by the feature level at which you create the device and not the Microsoft Direct3D interface version. For example, if you use Microsoft Direct3D 10 hardware at feature level 10 (D3D_FEATURE_LEVEL_10_0) and call D3D11CreateDevice to create an ID3D11Device, you must constrain the maximum texture size to D3D10_REQ_TEXTURE3D_U_V_OR_W_DIMENSION (2048) when you create your 3D texture.

-see-also

Resource Structures