Skip to content

D3DX11DebugMute

Chuck Walbourn edited this page May 14, 2021 · 4 revisions

Controls the output of diagnostic information in Debug builds. It has no effect in Release builds.

bool D3DX11DebugMute(bool mute);

This function is not present in the legacy DirectX SDK version of Effects 11.

Header

#include "d3dx11effect.h"

Parameters

mute: If set to false, debug output is suppressed. If set to true (the default), any diagnostic message is output to the debug window.

Return value

Returns the old value for the mute flag. This allows you to do local suppression and restore the previous state:

bool oldmute = D3DX11DebugMute(true);
...
D3DX11DebugMute(oldmute);

Remarks

Note that unlike the D3DX9 version of this function (D3DXDebugMute), this function does not attempt to suppress diagnostic output from Direct3D, DXGI, etc. You should continue to use the existing ID3D11InfoQueue and IDXGIInfoQueue interfaces for that.

For Use

  • Windows desktop apps
  • Windows 11
  • Windows 10
  • Windows 8.1
  • Windows 7 Service Pack 1

For Development

  • Visual Studio 2022
  • Visual Studio 2019
  • clang/LLVM v12 - v15
  • CMake 3.20

Related Projects

DirectX Tool Kit

DirectXMesh

DirectXTex

DXCapsViewer

UVAtlas

DXUT11

DirectX SDK Samples

Clone this wiki locally