mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-28 09:43:55 +00:00
docs(msl-out): note that Dawn also avoids loop UB like we do
This commit is contained in:
parent
3fda684eb9
commit
f942ceef9b
@ -782,6 +782,9 @@ impl<W: Write> Writer<W> {
|
||||
///
|
||||
/// To make our output a bit more legible, we pull the condition out into a
|
||||
/// preprocessor macro defined at the top of the module.
|
||||
///
|
||||
/// This approach is also used by Chromium WebGPU's Dawn shader compiler, as of
|
||||
/// <https://github.com/google/dawn/commit/ffd485c685040edb1e678165dcbf0e841cfa0298>.
|
||||
fn emit_loop_reachable_macro(&mut self) -> BackendResult {
|
||||
if !self.loop_reachable_macro_name.is_empty() {
|
||||
return Ok(());
|
||||
|
Loading…
Reference in New Issue
Block a user