The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
Set a bitfield of flags that will turn debug features on and off.
Syntax
HRESULT SetFeatureMask(
[in] UINT Mask
);
Parameters
- Mask [in]
-
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.
Setting a feature-mask flag will cause a rendering-operation method (listed below) to do some extra task when called. The possible feature flags are:
| 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
|
Header |
|
|---|
See also
Build date: 11/28/2012