public:
HRESULT CreateComputeContextX(
const D3D11_COMPUTE_CONTEXT_DESC *pComputeContextDesc,
ID3D11DeviceContextX **ppComputeContext
)
pComputeContextDesc
Type: D3D11_COMPUTE_CONTEXT_DESC *
[in] Description of the compute context, as a pointer to a D3D11_COMPUTE_CONTEXT_DESC structure. This structure is used to specify parameters for the compute context, such as pipe and queue index, ring buffer size, and flags. All members of this structure must be 0. Only one compute context can be created at a time.
ppComputeContext
Type: ID3D11DeviceContextX **
[out] The compute context, as a pointer to pointer to ID3D11DeviceContextX.
Type: HRESULT
One of the Direct3D 11 return codes.
Use this method to create a compute context. The compute context workloads run at low priority compared to graphics immediate context workloads.
Header: Declared in d3d11_x.h.
Library: Use d3d11_x.lib.