Files
UnrealEngineUWP/Engine/Config/ConsoleVariables.ini
eric mcdaniel f58f42e02a Support for dumping shader debug info only on compilation errors or warnings
- valid settings for r.DumpShaderDebugInfo are now 0-3
  - 0 - don't dump (unchanged)
  - 1 - always dump (unchanged)
  - 2 - dump on error (ie compilation failure)
  - 3 - dump on generated errors or warnings

- implementation details:
  - mode 2 and 3 are achieved by reissuing shader compilation jobs
    - jobs are issued as normal with no DumpInfoPath set so the platform specific shader compilers will not dump additional files
      - jobs that fail to compile (mode 2) or generate any errors/warnings (mode 3) are reissued with a valid DumpInfoPath which will cause the platform specific shader compilers to dump the additional files
        - the directory creation is deferred until the second pass on mode 2 or 3 as well so no empty directories are created

- limitations:
  - shader compilation jobs which crash the shader compile worker will not produce debug dump info on modes 2 or 3 as we will not get an opportunity to reissue the jobs

#rb Rolando.Caloca, Lukas.Hermanns
#jira none
#ushell-cherrypick of 12649065 by eric.mcdaniel

#ROBOMERGE-SOURCE: CL 12729479 in //UE4/Release-4.25Plus/... via CL 12781786
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v681-12776863)

[CL 12782596 by eric mcdaniel in Main branch]
2020-04-14 13:41:58 -04:00

4.6 KiB