Skip to content
Open
Show file tree
Hide file tree
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: 6 additions & 2 deletions wgpu-hal/src/gles/device.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
use alloc::{
borrow::ToOwned, format, string::String, string::ToString as _, sync::Arc, vec, vec::Vec,
};
use core::{cmp::max, convert::TryInto, num::NonZeroU32, ptr, sync::atomic::Ordering};

use arrayvec::ArrayVec;
use core::{cmp::max, convert::TryInto, num::NonZeroU32, ptr, sync::atomic::Ordering};
use glow::HasContext;
use naga::FastHashMap;

Expand Down Expand Up @@ -319,6 +318,11 @@ impl super::Device {
shader_id: stage.module.id,
entry_point: stage.entry_point.to_owned(),
zero_initialize_workgroup_memory: stage.zero_initialize_workgroup_memory,
constant_hash: stage
.constants
.iter()
.map(|(key, value)| format!("{key}:{value}"))
.collect(),
});
}
let mut guard = self
Expand Down
1 change: 1 addition & 0 deletions wgpu-hal/src/gles/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,7 @@ struct ProgramStage {
shader_id: ShaderId,
entry_point: String,
zero_initialize_workgroup_memory: bool,
constant_hash: String,
}

#[derive(PartialEq, Eq, Hash)]
Expand Down