From 472c2258dbeca000a454ea1781f09df63477563e Mon Sep 17 00:00:00 2001 From: skal Date: Sat, 28 Feb 2026 02:39:04 +0100 Subject: replace wgsl type: vec4 -> vec4f .. --- common/shaders/common_uniforms.wgsl | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'common/shaders/common_uniforms.wgsl') 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, // 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, - inv_view_proj: mat4x4, - camera_pos_time: vec4, - params: vec4, - resolution: vec2, + view_proj: mat4x4f, + inv_view_proj: mat4x4f, + camera_pos_time: vec4f, + params: vec4f, + resolution: vec2f, }; struct ObjectData { - model: mat4x4, - inv_model: mat4x4, - color: vec4, - params: vec4, + model: mat4x4f, + inv_model: mat4x4f, + color: vec4f, + params: vec4f, }; struct ObjectsBuffer { objects: array, -- cgit v1.2.3