mirror of
https://github.com/sotrh/learn-wgpu.git
synced 2024-11-10 01:10:28 +00:00
fix type name Camera to CameraUniform
This commit is contained in:
parent
f64edebffa
commit
d13ba88020
@ -1,11 +1,11 @@
|
||||
// Vertex shader
|
||||
|
||||
[[block]]
|
||||
struct Camera {
|
||||
struct CameraUniform {
|
||||
view_proj: mat4x4<f32>;
|
||||
};
|
||||
[[group(1), binding(0)]]
|
||||
var<uniform> camera: Camera;
|
||||
var<uniform> camera: CameraUniform;
|
||||
|
||||
struct VertexInput {
|
||||
[[location(0)]] position: vec3<f32>;
|
||||
|
@ -234,7 +234,7 @@ struct CameraUniform {
|
||||
view_proj: mat4x4<f32>;
|
||||
};
|
||||
[[group(1), binding(0)]] // 2.
|
||||
var<uniform> camera: Camera;
|
||||
var<uniform> camera: CameraUniform;
|
||||
|
||||
struct VertexInput {
|
||||
[[location(0)]] position: vec3<f32>;
|
||||
|
Loading…
Reference in New Issue
Block a user