diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-28 02:39:04 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-28 02:39:04 +0100 |
| commit | 472c2258dbeca000a454ea1781f09df63477563e (patch) | |
| tree | 98ac75c3824f19f4a598a807b3cb6aa13e8cb0c3 /common/shaders/common_uniforms.wgsl | |
| parent | 1c5a9fb7b8c704a59ec58894adf46d73d1615072 (diff) | |
replace wgsl type: vec4<f32> -> vec4f ..
Diffstat (limited to 'common/shaders/common_uniforms.wgsl')
| -rw-r--r-- | common/shaders/common_uniforms.wgsl | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/common/shaders/common_uniforms.wgsl b/common/shaders/common_uniforms.wgsl index 1ab8939..5dc0251 100644 --- a/common/shaders/common_uniforms.wgsl +++ b/common/shaders/common_uniforms.wgsl @@ -1,5 +1,5 @@ struct CommonUniforms { - resolution: vec2<f32>, // Screen dimensions + resolution: vec2f, // Screen dimensions aspect_ratio: f32, // Width/height ratio time: f32, // Physical time in seconds (unaffected by tempo) beat_time: f32, // Musical time in beats (absolute, tempo-scaled) @@ -8,17 +8,17 @@ struct CommonUniforms { _pad: f32, // Padding }; struct GlobalUniforms { - view_proj: mat4x4<f32>, - inv_view_proj: mat4x4<f32>, - camera_pos_time: vec4<f32>, - params: vec4<f32>, - resolution: vec2<f32>, + view_proj: mat4x4f, + inv_view_proj: mat4x4f, + camera_pos_time: vec4f, + params: vec4f, + resolution: vec2f, }; struct ObjectData { - model: mat4x4<f32>, - inv_model: mat4x4<f32>, - color: vec4<f32>, - params: vec4<f32>, + model: mat4x4f, + inv_model: mat4x4f, + color: vec4f, + params: vec4f, }; struct ObjectsBuffer { objects: array<ObjectData>, |
