Adding WebGPU to TODO.md. Annotating the parts of the WebGPU code that involve uniform buffer layout issues.

This commit is contained in:
Rezmason
2021-10-27 22:34:47 -07:00
parent c27c20f2cf
commit c3254c3aa1
4 changed files with 27 additions and 9 deletions

View File

@@ -23,6 +23,8 @@ let TWO_PI:f32 = 6.28318530718; // No, I'm not using Tau.
[[block]] struct CameraUniforms {
screenSize: vec2<f32>;
camera: mat4x4<f32>;
transform: mat4x4<f32>;
};
[[group(0), binding(5)]] var<uniform> cameraUniforms:CameraUniforms;