render: remove unused field from SpriteInstance struct on gpu
This commit is contained in:
parent
e1f48d525a
commit
4afd518f45
|
@ -387,8 +387,6 @@ impl Node for SpritePass {
|
||||||
let inst = SpriteInstance {
|
let inst = SpriteInstance {
|
||||||
atlas_frame: rect.unwrap_or(URect::ZERO),
|
atlas_frame: rect.unwrap_or(URect::ZERO),
|
||||||
transform: transform.calculate_mat4(),
|
transform: transform.calculate_mat4(),
|
||||||
pivot,
|
|
||||||
_padding: [0; 2],
|
|
||||||
};
|
};
|
||||||
sprite_instances.push(inst);
|
sprite_instances.push(inst);
|
||||||
let inst_id = sprite_instances.len() as u64 - 1;
|
let inst_id = sprite_instances.len() as u64 - 1;
|
||||||
|
@ -477,6 +475,4 @@ impl Node for SpritePass {
|
||||||
struct SpriteInstance {
|
struct SpriteInstance {
|
||||||
atlas_frame: URect,
|
atlas_frame: URect,
|
||||||
transform: glam::Mat4,
|
transform: glam::Mat4,
|
||||||
pivot: glam::Vec2,
|
|
||||||
_padding: [u32; 2],
|
|
||||||
}
|
}
|
|
@ -26,7 +26,6 @@ struct URect {
|
||||||
struct SpriteInstance {
|
struct SpriteInstance {
|
||||||
atlas_frame: URect,
|
atlas_frame: URect,
|
||||||
transform: mat4x4<f32>,
|
transform: mat4x4<f32>,
|
||||||
pivot: vec2<f32>,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct CameraUniform {
|
struct CameraUniform {
|
||||||
|
|
Loading…
Reference in New Issue