Fix expression validation check

This commit is contained in:
Dzmitry Malyshau authored and Dzmitry Malyshau committed 2021-03-25 09:32:55 -04:00
1 parent 4fb4133298
commit e87f57d82c
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -536,7 +536,7 @@ impl super::Validator {
if expr.needs_pre_emit() {
self.valid_expression_set.insert(handle.index());
}
if !self.flags.contains(ValidationFlags::EXPRESSIONS) {
if self.flags.contains(ValidationFlags::EXPRESSIONS) {
match self.validate_expression(
handle,
expr,
+1 -1
View File
@@ -23,7 +23,7 @@ var<storage> s_lights: [[access(read)]] Lights;
[[group(0), binding(2)]]
var t_shadow: texture_depth_2d_array;
[[group(0), binding(3)]]
var sampler_shadow: sampler;
var sampler_shadow: sampler_comparison;
fn fetch_shadow(light_id: u32, homogeneous_coords: vec4<f32>) -> f32 {
if (homogeneous_coords.w <= 0.0) {