bevy/crates/bevy_pbr/src/light_probe
Elabajaba 45e920c2e1
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
https://github.com/bevyengine/bevy/pull/11366 merged due to an internal
compiler error in DXC. I tracked it down to a single `break` statement
and reported it upstream
(https://github.com/microsoft/DirectXShaderCompiler/issues/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.
2024-01-27 13:37:08 +00:00
..
environment_map.rs Revert rendering-related associated type name changes (#11027) 2024-01-22 15:01:55 +00:00
environment_map.wgsl Workaround for ICE in the DXC shader compiler in debug builds with an EnvironmentMapLight (#11487) 2024-01-27 13:37:08 +00:00
mod.rs Implement minimal reflection probes (fixed macOS, iOS, and Android). (#11366) 2024-01-19 07:33:52 +00:00