Esta página foi útil?
Os seus comentários sobre este conteúdo são importantes. Dê-nos a sua opinião.
Comentários adicionais?
1500 caracteres restantes
Exportar (0) Imprimir
Expandir Todos
Este conteúdo não está disponível no seu idioma mas aqui tem a versão em inglês.

ID3D11DeviceContext2::IsAnnotationEnabled method

Allows apps to determine when either a capture or profiling request is enabled.


BOOL IsAnnotationEnabled();


This method has no parameters.

Return value

Returns TRUE if capture or profiling is enabled and FALSE otherwise.


Returns TRUE if the capture tool is present and capturing or the app is being profiled such that SetMarkerInt or BeginEventInt will be logged to ETW. Otherwise, it returns FALSE. Apps can use this to turn off self-throttling mechanisms in order to accurately capture what is currently being seen as app output. Apps can also avoid generating event markers and the associated overhead it may entail when there is no benefit to do so.

If apps detect that capture is being performed, they can prevent the Direct3D debugging tools, such as Microsoft Visual Studio 2013, from capturing them. The purpose of the D3D11_CREATE_DEVICE_PREVENT_ALTERING_LAYER_SETTINGS_FROM_REGISTRY flag prior to Windows 8.1 was to allow the Direct3D runtime to prevent debugging tools from capturing apps.


Minimum supported client

Windows 8.1 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 R2 [desktop apps | Windows Store apps]



See also




Conteúdo da Comunidade

© 2015 Microsoft