render: remove unused field from SpriteInstance struct on gpu

This commit is contained in:
SeanOMik 2024-11-27 23:12:12 -05:00
parent a06c065337
commit 9852df498b
Signed by: SeanOMik
GPG Key ID: FEC9E2FC15235964
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 {