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 aacb74e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/shaders/src/compile/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ 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,
ValidationFlags::all(),
Capabilities::all(),
)
.validate(&module)?;
Expand Down

0 comments on commit aacb74e

Please sign in to comment.