ID3D11DeviceX::CreateComputeContextX Method

Creates a compute context.

Syntax

public:
HRESULT CreateComputeContextX(
         const D3D11_COMPUTE_CONTEXT_DESC *pComputeContextDesc,
         ID3D11DeviceContextX **ppComputeContext
)  

Parameters

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.

Return value

Type: HRESULT 

One of the Direct3D 11 return codes.

Remarks

Use this method to create a compute context. The compute context workloads run at low priority compared to graphics immediate context workloads.

Requirements

Header: Declared in d3d11_x.h.

Library: Use d3d11_x.lib.

See also

Reference

ID3D11DeviceX Interface

ID3D11DeviceX Members