Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workaround for ICE in the DXC shader compiler in debug builds with an…
… `EnvironmentMapLight` (#11487) # Objective DXC+DX12 debug builds with an environment map have been broken since #11366 merged due to an internal compiler error in DXC. I tracked it down to a single `break` statement and reported it upstream (microsoft/DirectXShaderCompiler#6183) ## Solution Workaround the ICE by setting the for loop index variable to the max value of the loop to avoid the `break` that's causing the ICE. This works because it's the last thing in the for loop. The `reflection_probes` and `pbr` examples both appear to still work correctly.
- Loading branch information