ID3D11ComputeContextX::SetPriority Method

Sets the priority of this compute context’s submitted workloads, relative to other compute context workloads sharing the same compute pipe.

Syntax

public:
HRESULT SetPriority(
         D3D11X_COMPUTE_CONTEXT_PRIORITY Priority
)  

Parameters

Priority
Type: D3D11X_COMPUTE_CONTEXT_PRIORITY 

[in] The priority, as a D3D11X_COMPUTE_CONTEXT_PRIORITY enumeration constant.

For compute contexts created on compute pipe 0, the maximum allowed priority value is D3D11X_COMPUTE_CONTEXT_PRIORITY_HIGHEST.

For compute contexts created on compute pipe 1, the maximum allowed priority value is D3D11X_COMPUTE_CONTEXT_PRIORITY_HIGHER.

Return value

Type: HRESULT 

One of the Direct3D 11 return codes.

Requirements

Header: Declared in d3d11_x.h.

Library: Use d3d11_x.lib.

See also

Reference

ID3D11ComputeContextX Interface

ID3D11ComputeContextX Members