Specifies how the CPU should respond when an application calls the ID3D11DeviceContext::Map method on a resource that is being used by the GPU.
typedef enum D3D11_MAP_FLAG
{
D3D11_MAP_FLAG_DO_NOT_WAIT = 0x100000L,
D3D11_MAP_FLAG_ALLOW_USAGE_DEFAULT = 0x00200000L
} D3D11_MAP_FLAG;
| Constant | Description |
|---|---|
| D3D11_MAP_FLAG_DO_NOT_WAIT | Specifies that ID3D11DeviceContext::Map should return DXGI_ERROR_WAS_STILL_DRAWING when the GPU blocks the CPU from accessing a resource. For more information about this error code, see DXGI_ERROR. |
| D3D11_MAP_FLAG_ALLOW_USAGE_DEFAULT | Specifies that the CPU should allow using a resource that is being used by the GPU. |
This enumeration is used by ID3D11DeviceContext::Map.
D3D11_MAP_FLAG_DO_NOT_WAIT cannot be used with D3D11_MAP_WRITE_DISCARD or D3D11_MAP_WRITE_NOOVERWRITE.
Header: Declared in d3d11_x.h (d3d11.h on other Windows platforms).