From 0612ce58890741428f10c73a63bcb417dcd43a9f Mon Sep 17 00:00:00 2001 From: metamuffin Date: Wed, 22 Jan 2025 00:23:58 +0100 Subject: generalize pipeline configuration in preparation for skinning --- client/src/armature.rs | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'client/src/armature.rs') diff --git a/client/src/armature.rs b/client/src/armature.rs index d955415..abfc455 100644 --- a/client/src/armature.rs +++ b/client/src/armature.rs @@ -1,13 +1,28 @@ -use std::sync::Arc; +/* + wearechat - generic multiplayer game with voip + Copyright (C) 2025 metamuffin + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, version 3 of the License only. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ use glam::Mat4; +use std::sync::Arc; use weareshared::resources::Armature; use wgpu::{Buffer, BufferDescriptor, BufferUsages, Device, Queue}; pub struct RArmature { pub joint_mat_uniform_buffer: Arc, joint_mat: Vec, - data: Armature, + _data: Armature, } impl RArmature { @@ -19,7 +34,7 @@ impl RArmature { usage: BufferUsages::COPY_DST | BufferUsages::UNIFORM, mapped_at_creation: false, })), - data: armature, + _data: armature, joint_mat: vec![], } } -- cgit v1.2.3-70-g09d2