Skip to content
This repository was archived by the owner on Oct 21, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/redirect.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use std::collections::{HashMap, HashSet};
use std::collections::HashSet;

use indexmap::IndexMap;
use naga::{Block, Expression, Function, Handle, Module, Statement};
use thiserror::Error;

Expand Down Expand Up @@ -183,8 +184,9 @@ impl Redirector {
}

pub fn into_module(self) -> Result<naga::Module, RedirectError> {
// reorder functions so that dependents come first
let mut requirements: HashMap<_, _> = self
// reorder functions so that dependents come first. IndexMap (not HashMap)
// so the emission order is deterministic across runs.
let mut requirements: IndexMap<_, _> = self
.module
.functions
.iter()
Expand Down
Loading