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>
This commit is contained in:
Jeremy Ong
2021-12-07 10:32:09 -07:00
parent aad16acf1f
commit 2d1d9f1f5c
+2 -1
View File
@@ -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
}