fix type name Camera to CameraUniform

This commit is contained in:
VillSnow 2021-09-09 18:46:43 +09:00
parent f64edebffa
commit d13ba88020
2 changed files with 3 additions and 3 deletions

View File

@ -1,11 +1,11 @@
// Vertex shader // Vertex shader
[[block]] [[block]]
struct Camera { struct CameraUniform {
view_proj: mat4x4<f32>; view_proj: mat4x4<f32>;
}; };
[[group(1), binding(0)]] [[group(1), binding(0)]]
var<uniform> camera: Camera; var<uniform> camera: CameraUniform;
struct VertexInput { struct VertexInput {
[[location(0)]] position: vec3<f32>; [[location(0)]] position: vec3<f32>;

View File

@ -234,7 +234,7 @@ struct CameraUniform {
view_proj: mat4x4<f32>; view_proj: mat4x4<f32>;
}; };
[[group(1), binding(0)]] // 2. [[group(1), binding(0)]] // 2.
var<uniform> camera: Camera; var<uniform> camera: CameraUniform;
struct VertexInput { struct VertexInput {
[[location(0)]] position: vec3<f32>; [[location(0)]] position: vec3<f32>;