tirbofish/dropbear · commit
4d1cb4e3301728751c61c246df24ca7a1774f5e8
fmt: cargo fix + cargo fmt
Signature present but could not be verified.
Unverified
@@ -1,16 +1,20 @@ use slank::{SlangShaderBuilder, SlangTarget}; fn main() { - // to copy paste: + // to copy paste: // let shader = Shader::from_slang(graphics.clone(), &slank::compiled::CompiledSlangShader::from_bytes("light cube", include_slang!("light_cube"))); SlangShaderBuilder::new("light_cube") - .add_source_path("src/shaders/light.slang").unwrap() - .compile_to_out_dir(SlangTarget::SpirV).unwrap(); + .add_source_path("src/shaders/light.slang") + .unwrap() + .compile_to_out_dir(SlangTarget::SpirV) + .unwrap(); SlangShaderBuilder::new("blit_shader") - .add_source_path("src/shaders/blit.slang").unwrap() - .compile_to_out_dir(SlangTarget::SpirV).unwrap(); + .add_source_path("src/shaders/blit.slang") + .unwrap() + .compile_to_out_dir(SlangTarget::SpirV) + .unwrap(); println!("cargo:rerun-if-changed=src/shaders"); -} +} @@ -1,9 +1,9 @@ +use crate::graphics::SharedGraphicsContext; +use crate::model::{AnimationInterpolation, ChannelValues, Model, NodeTransform}; +use glam::Mat4; use std::collections::HashMap; use std::sync::Arc; -use glam::Mat4; use wgpu::util::DeviceExt; -use crate::graphics::SharedGraphicsContext; -use crate::model::{AnimationInterpolation, ChannelValues, Model, NodeTransform}; #[derive(Debug, Clone, serde::Serialize, serde::Deserialize)] pub struct AnimationComponent { @@ -83,7 +83,11 @@ impl AnimationComponent {
Large diffs are not rendered by default. Showing the first 50 of 24866 lines. Show full diff