ID3D10Debug::SetFeatureMask method (d3d10sdklayers.h)
Set a bitfield of flags that will turn debug features on and off.
Syntax
HRESULT SetFeatureMask(
[in] UINT Mask
);
Parameters
[in] Mask
Type: UINT
Feature-mask flags bitwise ORed together. If a flag is present, then that feature will be set to on, otherwise the feature will be set to off. See remarks for a list of flags.
Return value
Type: HRESULT
This method returns one of the following Direct3D 10 Return Codes.
Remarks
Note If you call this API in a Session 0 process, it returns DXGI_ERROR_NOT_CURRENTLY_AVAILABLE.
D3D10_DEBUG_FEATURE_FINISH_PER_RENDER_OP | Application will wait for the GPU to finish processing the rendering operation before continuing. |
D3D10_DEBUG_FEATURE_FLUSH_PER_RENDER_OP | Runtime will additionally call ID3D10Device::Flush. |
D3D10_DEBUG_FEATURE_PRESENT_PER_RENDER_OP | Runtime will call Present. Presentation of render buffers will occur according to the settings established by prior calls to ID3D10Debug::SetSwapChain and ID3D10Debug::SetPresentPerRenderOpDelay. |
These feature-mask flags apply to the following rendering-operation methods:
- ID3D10Device::Draw
- ID3D10Device::DrawIndexed
- ID3D10Device::DrawInstanced
- ID3D10Device::DrawIndexedInstanced
- ID3D10Device::DrawAuto
- ID3D10Device::ClearRenderTargetView
- ID3D10Device::ClearDepthStencilView
- ID3D10Device::CopySubresourceRegion
- ID3D10Device::CopyResource
- ID3D10Device::UpdateSubresource
- ID3D10Device::GenerateMips
- ID3D10Device::ResolveSubresource
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | d3d10sdklayers.h |