Enable Pix markers if the Pix DLL is loaded

Fixes a regression introduced when Nsight Pix markers were enabled.

Signed-off-by: Jeremy Ong <jcong@amazon.com>
monroegm-disable-blank-issue-2
Jeremy Ong 4 years ago
parent aad16acf1f
commit 2d1d9f1f5c

@ -123,7 +123,8 @@ namespace AZ
//Pix dll can still be injected even if we do not pass in enablePixGPU. This can be done if we launch the app from Pix.
s_isPixGpuCaptureDllLoaded = Platform::IsPixDllInjected(AZ_TRAIT_PIX_MODULE);
s_pixGpuMarkersEnabled = s_pixGpuMarkersEnabled || RHI::QueryCommandLineOption("enablePixGpuMarkers");
s_pixGpuMarkersEnabled =
s_pixGpuMarkersEnabled || RHI::QueryCommandLineOption("enablePixGpuMarkers") || s_isPixGpuCaptureDllLoaded;
#endif
}

Loading…
Cancel
Save