[naga] Update naga with new struct members separator

This commit is contained in:
Igor Shaposhnik authored and Dzmitry Malyshau committed 2022-03-16 20:42:21 -07:00
1 parent ba07db90c8
commit c5d5dbc7eb
15 files changed
+68 -68

No files matched your search

+9 -9
View File
@@ -1,16 +1,16 @@
struct Particle {
pos : vec2<f32>;
vel : vec2<f32>;
pos : vec2<f32>,
vel : vec2<f32>,
};
struct SimParams {
deltaT : f32;
rule1Distance : f32;
rule2Distance : f32;
rule3Distance : f32;
rule1Scale : f32;
rule2Scale : f32;
rule3Scale : f32;
deltaT : f32,
rule1Distance : f32,
rule2Distance : f32,
rule3Distance : f32,
rule1Scale : f32,
rule2Scale : f32,
rule3Scale : f32,
};
@group(0) @binding(0) var<uniform> params : SimParams;
@@ -1,6 +1,6 @@
struct VertexOutput {
@builtin(position) position: vec4<f32>;
@location(0) tex_coords: vec2<f32>;
@builtin(position) position: vec4<f32>,
@location(0) tex_coords: vec2<f32>,
};
@stage(vertex)
+3 -3
View File
@@ -1,10 +1,10 @@
struct VertexOutput {
@location(0) tex_coord: vec2<f32>;
@builtin(position) position: vec4<f32>;
@location(0) tex_coord: vec2<f32>,
@builtin(position) position: vec4<f32>,
};
struct Locals {
transform: mat4x4<f32>;
transform: mat4x4<f32>
};
@group(0)
@binding(0)
+2 -2
View File
@@ -1,6 +1,6 @@
struct VertexOutput {
@builtin(position) position: vec4<f32>;
@location(0) tex_coords: vec2<f32>;
@builtin(position) position: vec4<f32>,
@location(0) tex_coords: vec2<f32>,
};
@stage(vertex)
+3 -3
View File
@@ -1,10 +1,10 @@
struct VertexOutput {
@builtin(position) position: vec4<f32>;
@location(0) tex_coords: vec2<f32>;
@builtin(position) position: vec4<f32>,
@location(0) tex_coords: vec2<f32>,
};
struct Locals {
transform: mat4x4<f32>;
transform: mat4x4<f32>
};
@group(0)
@binding(0)
+2 -2
View File
@@ -1,6 +1,6 @@
struct VertexOutput {
@location(0) color: vec4<f32>;
@builtin(position) position: vec4<f32>;
@location(0) color: vec4<f32>,
@builtin(position) position: vec4<f32>,
};
@stage(vertex)
+10 -10
View File
@@ -1,6 +1,6 @@
struct Globals {
view_proj: mat4x4<f32>;
num_lights: vec4<u32>;
view_proj: mat4x4<f32>,
num_lights: vec4<u32>,
};
@group(0)
@@ -8,8 +8,8 @@ struct Globals {
var<uniform> u_globals: Globals;
struct Entity {
world: mat4x4<f32>;
color: vec4<f32>;
world: mat4x4<f32>,
color: vec4<f32>,
};
@group(1)
@@ -22,9 +22,9 @@ fn vs_bake(@location(0) position: vec4<i32>) -> @builtin(position) vec4<f32> {
}
struct VertexOutput {
@builtin(position) proj_position: vec4<f32>;
@location(0) world_normal: vec3<f32>;
@location(1) world_position: vec4<f32>;
@builtin(position) proj_position: vec4<f32>,
@location(0) world_normal: vec3<f32>,
@location(1) world_position: vec4<f32>
};
@stage(vertex)
@@ -44,9 +44,9 @@ fn vs_main(
// fragment shader
struct Light {
proj: mat4x4<f32>;
pos: vec4<f32>;
color: vec4<f32>;
proj: mat4x4<f32>,
pos: vec4<f32>,
color: vec4<f32>,
};
@group(0)
+9 -9
View File
@@ -1,17 +1,17 @@
struct SkyOutput {
@builtin(position) position: vec4<f32>;
@location(0) uv: vec3<f32>;
@builtin(position) position: vec4<f32>,
@location(0) uv: vec3<f32>,
};
struct Data {
// from camera to screen
proj: mat4x4<f32>;
proj: mat4x4<f32>,
// from screen to camera
proj_inv: mat4x4<f32>;
proj_inv: mat4x4<f32>,
// from world to camera
view: mat4x4<f32>;
view: mat4x4<f32>,
// camera position
cam_pos: vec4<f32>;
cam_pos: vec4<f32>,
};
@group(0)
@binding(0)
@@ -40,9 +40,9 @@ fn vs_sky(@builtin(vertex_index) vertex_index: u32) -> SkyOutput {
}
struct EntityOutput {
@builtin(position) position: vec4<f32>;
@location(1) normal: vec3<f32>;
@location(3) view: vec3<f32>;
@builtin(position) position: vec4<f32>,
@location(1) normal: vec3<f32>,
@location(3) view: vec3<f32>,
};
@stage(vertex)
+5 -5
View File
@@ -1,6 +1,6 @@
struct Uniforms {
projection_view: mat4x4<f32>;
clipping_plane: vec4<f32>;
projection_view: mat4x4<f32>,
clipping_plane: vec4<f32>,
};
@group(0)
@@ -12,10 +12,10 @@ let light_colour = vec3<f32>(1.0, 0.98, 0.82);
let ambient = 0.2;
struct VertexOutput {
@builtin(position) position: vec4<f32>;
@location(0) colour: vec4<f32>;
@builtin(position) position: vec4<f32>,
@location(0) colour: vec4<f32>,
// Comment this out if using user-clipping planes:
@location(1) clip_dist: f32;
@location(1) clip_dist: f32,
};
@stage(vertex)
+8 -8
View File
@@ -1,8 +1,8 @@
struct Uniforms {
view: mat4x4<f32>;
projection: mat4x4<f32>;
time_size_width: vec4<f32>;
viewport_height: f32;
view: mat4x4<f32>,
projection: mat4x4<f32>,
time_size_width: vec4<f32>,
viewport_height: f32,
};
@group(0) @binding(0) var<uniform> uniforms: Uniforms;
@@ -181,10 +181,10 @@ fn calc_specular(eye: vec3<f32>, normal: vec3<f32>, light: vec3<f32>) -> f32 {
}
struct VertexOutput {
@builtin(position) position: vec4<f32>;
@location(0) f_WaterScreenPos: vec2<f32>;
@location(1) f_Fresnel: f32;
@location(2) f_Light: vec3<f32>;
@builtin(position) position: vec4<f32>,
@location(0) f_WaterScreenPos: vec2<f32>,
@location(1) f_Fresnel: f32,
@location(2) f_Light: vec3<f32>,
};
@stage(vertex)