Skip to content

Commit

Permalink
[shaders] Enable CONTROL_FLOW_UNIFORMITY validation check
Browse files Browse the repository at this point in the history
The shaders all now pass the control flow uniformity validation check,
so we don't need to keep it disabled.
  • Loading branch information
armansito committed Sep 19, 2023
1 parent d4192ec commit 6994e72
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions crates/shaders/src/compile/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,8 @@ pub struct ShaderInfo {
impl ShaderInfo {
pub fn new(source: String, entry_point: &str) -> Result<ShaderInfo, Error> {
let module = wgsl::parse_str(&source)?;
let module_info = naga::valid::Validator::new(
ValidationFlags::all() & !ValidationFlags::CONTROL_FLOW_UNIFORMITY,
Capabilities::all(),
)
.validate(&module)?;
let module_info = naga::valid::Validator::new(ValidationFlags::all(), Capabilities::all())
.validate(&module)?;
let (entry_index, entry) = module
.entry_points
.iter()
Expand Down

0 comments on commit 6994e72

Please sign in to comment.