D3D11_USAGE

D3D11_USAGE

This enumeration defines the usage of a resource.

Value Meaning
D3D11_USAGE_DEFAULT The resource is used for the default behavior.
D3D11_USAGE_STAGING_READ The resource is used as a staging area for reading data.
D3D11_USAGE_STAGING_WRITE The resource is used as a staging area for writing data.
D3D11_USAGE_STREAM_READ The resource is used as a stream buffer for reading data.
D3D11_USAGE_STREAM_WRITE The resource is used as a stream buffer for writing data.
D3D11_USAGE_OUTPUT_MERGE The resource is used as an output merged buffer.

These values are used to specify how a resource is to be used when a command is issued. Understanding the correct usage value is critical for optimizing performance and avoiding errors.