D3D11_COPY_FLAGS enumeration (d3d11_1.h)

Note  This enumeration is supported by the Direct3D 11.1 runtime, which is available on Windows 8 and later operating systems.
 
Specifies how to handle the existing contents of a resource during a copy or update operation of a region within that resource.

Syntax

typedef enum D3D11_COPY_FLAGS {
  D3D11_COPY_NO_OVERWRITE = 0x1,
  D3D11_COPY_DISCARD = 0x2
} ;

Constants

 
D3D11_COPY_NO_OVERWRITE
Value: 0x1
The existing contents of the resource cannot be overwritten.
D3D11_COPY_DISCARD
Value: 0x2
The existing contents of the resource are undefined and can be discarded.

Requirements

Requirement Value
Minimum supported client Windows 8 and Platform Update for Windows 7 [desktop apps only]
Minimum supported server Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps only]
Header d3d11_1.h

See also

Core Enumerations

ID3D11DeviceContext1::CopySubresourceRegion1

ID3D11DeviceContext1::UpdateSubresource1