use super::*;
#[derive(Clone, Copy, Debug, bytemuck::Pod, bytemuck::Zeroable)]
#[repr(C)]
pub struct EffectInstance {
pub color: [f32; 4],
pub effect: [f32; 4],
}
impl ShaderInstance for EffectInstance {
const FIELDS: &'static [InstanceField] = &[
InstanceField {
name: "color",
offset: std::mem::offset_of!(Self, color),
components: 4,
},
InstanceField {
name: "effect",
offset: std::mem::offset_of!(Self, effect),
components: 4,
},
];
}
pub const ROUNDED_BOX: &str = include_str!("rounded_box.wgsl");
pub const PULSE_GLOW: &str = include_str!("pulse_glow.wgsl");
pub const PARTICLE: &str = include_str!("particle.wgsl");