render: remove unused field from SpriteInstance struct on gpu

This commit is contained in:
SeanOMik 2024-11-27 23:12:12 -05:00 committed by SeanOMik
parent e1f48d525a
commit 4afd518f45
2 changed files with 0 additions and 5 deletions

View File

@ -387,8 +387,6 @@ impl Node for SpritePass {
let inst = SpriteInstance {
atlas_frame: rect.unwrap_or(URect::ZERO),
transform: transform.calculate_mat4(),
pivot,
_padding: [0; 2],
};
sprite_instances.push(inst);
let inst_id = sprite_instances.len() as u64 - 1;
@ -477,6 +475,4 @@ impl Node for SpritePass {
struct SpriteInstance {
atlas_frame: URect,
transform: glam::Mat4,
pivot: glam::Vec2,
_padding: [u32; 2],
}

View File

@ -26,7 +26,6 @@ struct URect {
struct SpriteInstance {
atlas_frame: URect,
transform: mat4x4<f32>,
pivot: vec2<f32>,
}
struct CameraUniform {