They removed [[block]] from WGSL struct declarations.

This commit is contained in:
Rezmason
2021-12-14 23:01:53 -08:00
parent 17b6d7b9aa
commit 68ad689e1e
8 changed files with 19 additions and 19 deletions

View File

@@ -1,6 +1,6 @@
let ONE_OVER_SQRT_2PI = 0.39894;
[[block]] struct Config {
struct Config {
bloomRadius : f32;
direction : vec2<f32>;
};

View File

@@ -1,4 +1,4 @@
[[block]] struct Config {
struct Config {
bloomStrength : f32;
pyramidHeight : f32;
};

View File

@@ -1,13 +1,13 @@
[[block]] struct Config {
struct Config {
ditherMagnitude : f32;
backgroundColor : vec3<f32>;
};
[[block]] struct Palette {
struct Palette {
colors : array<vec3<f32>, 512>;
};
[[block]] struct Time {
struct Time {
seconds : f32;
frames : i32;
};

View File

@@ -1,7 +1,7 @@
// This shader module is the star of the show.
// It is where the cell states update and the symbols get drawn to the screen.
[[block]] struct Config {
struct Config {
// common properties used for compute and rendering
animationSpeed : f32;
glyphSequenceLength : i32;
@@ -41,20 +41,20 @@
};
// The properties that change over time get their own buffer.
[[block]] struct Time {
struct Time {
seconds : f32;
frames : i32;
};
// The properties related to the size of the canvas get their own buffer.
[[block]] struct Scene {
struct Scene {
screenSize : vec2<f32>;
camera : mat4x4<f32>;
transform : mat4x4<f32>;
};
// The array of cells that the compute shader updates, and the fragment shader draws.
[[block]] struct CellData {
struct CellData {
cells: array<vec4<f32>>;
};

View File

@@ -1,9 +1,9 @@
[[block]] struct Config {
struct Config {
ditherMagnitude : f32;
backgroundColor : vec3<f32>;
};
[[block]] struct Time {
struct Time {
seconds : f32;
frames : i32;
};

View File

@@ -1,9 +1,9 @@
[[block]] struct Config {
struct Config {
ditherMagnitude : f32;
backgroundColor : vec3<f32>;
};
[[block]] struct Time {
struct Time {
seconds : f32;
frames : i32;
};