Expand Minimize

D3D10_DDI_MAP enumeration

The D3D10_DDI_MAP enumeration type contains values that identify the access levels to map to a subresource in a call to the driver's ResourceMap function.

Syntax


typedef enum D3D10_DDI_MAP { 
  D3D10_DDI_MAP_READ               = 1,
  D3D10_DDI_MAP_WRITE              = 2,
  D3D10_DDI_MAP_READWRITE          = 3,
  D3D10_DDI_MAP_WRITE_DISCARD      = 4,
  D3D10_DDI_MAP_WRITE_NOOVERWRITE  = 5
} D3D10_DDI_MAP;

Constants

D3D10_DDI_MAP_READ

Read access is requested for the CPU to the subresource.

D3D10_DDI_MAP_WRITE

Write access is requested for the CPU to the subresource.

D3D10_DDI_MAP_READWRITE

Read and write access is requested for the CPU to the subresource.

D3D10_DDI_MAP_WRITE_DISCARD

Write access is requested for the CPU to the subresource. However, the contents of the subresource become undefined during this operation because the requesting application might completely write over the entire region of memory. You can use this access level only with dynamic resources.

D3D10_DDI_MAP_WRITE_NOOVERWRITE

Write access is requested for the CPU to the subresource. However, the requesting application will not overwrite any data that was previously used by the GPU. You can use this access level only with dynamic vertex and index buffers.

Requirements

Version

Available in Windows Vista and later versions of the Windows operating systems.

Header

D3d10umddi.h (include D3d10umddi.h)

See also

ResourceMap

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft