Sets the priority of this compute context’s submitted workloads, relative to other compute context workloads sharing the same compute pipe.
public:
HRESULT SetPriority(
D3D11X_COMPUTE_CONTEXT_PRIORITY Priority
)
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.
Type: HRESULT
One of the Direct3D 11 return codes.
Header: Declared in d3d11_x.h.
Library: Use d3d11_x.lib.