ID3D11TracingDevice::SetShaderTrackingOptions Method

Sets the reference rasterizer’s race-condition tracking options for a specific shader.

Syntax

public:
HRESULT SetShaderTrackingOptions(
         IUnknown *pShader,
         UINT Options
)  

Parameters

pShader
Type: IUnknown *

[in] A pointer to the IUnknown interface of a shader.

Options
Type: UINT 

[in] A combination of D3D11_SHADER_TRACKING_OPTIONS-typed flags that are combined by using a bitwise OR operation. The resulting value identifies tracking options. If a flag is present, the tracking option that the flag represents is set to “on”; otherwise the tracking option is set to “off.”

Return value

Type: HRESULT 

This method returns one of the Direct3D 11 return codes.

Remarks

Note

After a call to SetShaderTrackingOptions, the tracking options that the Options parameter specifies are set for all calls by the shader that the pShader parameter specifies, until the next call to SetShaderTrackingOptions. If you set a flag that is specific to unordered access views (UAV) (for example, D3D11_SHADER_TRACKING_OPTION_UAV_SPECIFIC_FLAGS) in the Options parameter for a compute shader, SetShaderTrackingOptions ignores it.

Requirements

Header: Declared in d3d11sdklayers.h.

Library: Use d3d11.lib.

See also

ID3D11TracingDevice

ID3D11TracingDevice Members