Skip to content

Commit

Permalink
update test snapshots (#2219)
Browse files Browse the repository at this point in the history
  • Loading branch information
teoxoy authored Jan 23, 2023
1 parent 4142971 commit f70d8ec
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tests/out/wgsl/931-constant-emitting-vert.wgsl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
let constant: i32 = 10;
const constant: i32 = 10;

fn function() -> f32 {
return 0.0;
Expand Down
6 changes: 3 additions & 3 deletions tests/out/wgsl/bevy-pbr-frag.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ struct FragmentOutput {
@location(0) o_Target: vec4<f32>,
}

let MAX_POINT_LIGHTS: i32 = 10;
const MAX_POINT_LIGHTS: i32 = 10;

let MAX_DIRECTIONAL_LIGHTS: i32 = 1;
const MAX_DIRECTIONAL_LIGHTS: i32 = 1;

let PI: f32 = 3.1415927410125732;
const PI: f32 = 3.1415927410125732;

var<private> v_WorldPosition_1: vec3<f32>;
var<private> v_WorldNormal_1: vec3<f32>;
Expand Down
2 changes: 1 addition & 1 deletion tests/out/wgsl/constant-array-size-vert.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ struct Data {
vecs: array<vec4<f32>,42u>,
}

let NUM_VECS: i32 = 42;
const NUM_VECS: i32 = 42;

@group(1) @binding(0)
var<uniform> global: Data;
Expand Down
2 changes: 1 addition & 1 deletion tests/out/wgsl/expressions-frag.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ struct FragmentOutput {
@location(0) o_color: vec4<f32>,
}

let strct: TestStruct = TestStruct(array<vec4<u32>,2u>(vec4<u32>(0u, 0u, 0u, 0u), vec4<u32>(1u, 1u, 1u, 1u)));
const strct: TestStruct = TestStruct(array<vec4<u32>,2u>(vec4<u32>(0u, 0u, 0u, 0u), vec4<u32>(1u, 1u, 1u, 1u)));
var<private> global: f32;
@group(0) @binding(0)
var<storage, read_write> global_1: a_buf;
Expand Down
2 changes: 1 addition & 1 deletion tests/out/wgsl/global-constant-array-vert.wgsl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
let array_: array<f32,2u> = array<f32,2u>(1.0, 2.0);
const array_: array<f32,2u> = array<f32,2u>(1.0, 2.0);
var<private> i: u32;

fn main_1() {
Expand Down
2 changes: 1 addition & 1 deletion tests/out/wgsl/quad_glsl-vert.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ struct VertexOutput {
@builtin(position) member: vec4<f32>,
}

let c_scale: f32 = 1.2000000476837158;
const c_scale: f32 = 1.2000000476837158;

var<private> a_pos_1: vec2<f32>;
var<private> a_uv_1: vec2<f32>;
Expand Down

0 comments on commit f70d8ec

Please sign in to comment.