Specifies the types of CPU access allowed for a resource.
enum XG_CPU_ACCESS_FLAG
{
XG_CPU_ACCESS_WRITE = 0x10000L,
XG_CPU_ACCESS_READ = 0x20000L
};
| Constant | Description |
|---|---|
| XG_CPU_ACCESS_WRITE | 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 XG_USAGE). |
| XG_CPU_ACCESS_READ | 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 XG_USAGE). |
This enumeration is similar to D3D11_CPU_ACCESS_FLAG Enumeration.
This enumeration is used in XG_BUFFER_DESC, XG_TEXTURE1D_DESC, XG_TEXTURE2D_DESC, and XG_TEXTURE3D_DESC.
Applications may combine one or more of these flags with a logical OR. When possible, create resources with no CPU access flags, as this enables better resource optimization.
Header: Declared in xg.h.
Library: Use xg_x.lib.