Skip to content

Latest commit

 

History

History
73 lines (59 loc) · 3.36 KB

ne-d3d10-d3d10_cpu_access_flag.md

File metadata and controls

73 lines (59 loc) · 3.36 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
NE:d3d10.D3D10_CPU_ACCESS_FLAG
D3D10_CPU_ACCESS_FLAG (d3d10.h)
Specifies the types of CPU access allowed for a resource. (D3D10_CPU_ACCESS_FLAG)
9751a6d6-e112-7fe3-72df-bf449b5579c2
D3D10_CPU_ACCESS_FLAG
D3D10_CPU_ACCESS_FLAG enumeration [Direct3D 10]
D3D10_CPU_ACCESS_READ
D3D10_CPU_ACCESS_WRITE
d3d10/D3D10_CPU_ACCESS_FLAG
d3d10/D3D10_CPU_ACCESS_READ
d3d10/D3D10_CPU_ACCESS_WRITE
direct3d10.d3d10_cpu_access_flag
direct3d10\d3d10_cpu_access_flag.htm
direct3d10
VS|directx_sdk|~\d3d10_cpu_access_flag.htm
12/05/2018
9751a6d6-e112-7fe3-72df-bf449b5579c2, D3D10_CPU_ACCESS_FLAG, D3D10_CPU_ACCESS_FLAG enumeration [Direct3D 10], D3D10_CPU_ACCESS_READ, D3D10_CPU_ACCESS_WRITE, d3d10/D3D10_CPU_ACCESS_FLAG, d3d10/D3D10_CPU_ACCESS_READ, d3d10/D3D10_CPU_ACCESS_WRITE, direct3d10.d3d10_cpu_access_flag
d3d10.h
Windows
Windows
D3D10_CPU_ACCESS_FLAG
19H1
D3D10_CPU_ACCESS_FLAG
d3d10/D3D10_CPU_ACCESS_FLAG
c++
APIRef
kbSyntax
HeaderDef
D3D10.h
D3D10_CPU_ACCESS_FLAG

D3D10_CPU_ACCESS_FLAG enumeration

-description

Specifies the types of CPU access allowed for a resource.

-enum-fields

-field D3D10_CPU_ACCESS_WRITE:0x10000L

The resource is to be mappable so that the CPU can change its contents. Resources created with this flag cannot be set as outputs of the pipeline and must be created with either dynamic or staging usage (see D3D10_USAGE).

-field D3D10_CPU_ACCESS_READ:0x20000L

The resource is to be mappable so that the CPU can read its contents. Resources created with this flag cannot be set as either inputs or outputs to the pipeline and must be created with staging usage (see D3D10_USAGE).

-remarks

This enumeration is used in D3D10_BUFFER_DESC, D3D10_TEXTURE1D_DESC, D3D10_TEXTURE2D_DESC, D3D10_TEXTURE3D_DESC, and D3DX10_IMAGE_LOAD_INFO. See Creating Buffer Resources (Direct3D 10) for more details.

Applications can combine one or more of these flags with a bitwise OR. When possible, create resources with no CPU access flags, as this enables better resource optimization.

-see-also

Resource Enumerations