summaryrefslogtreecommitdiffstats
path: root/wgpu
diff options
context:
space:
mode:
authorLibravatar Dispersia <dispersias@gmail.com>2021-05-19 21:09:19 -0700
committerLibravatar Dispersia <dispersias@gmail.com>2021-05-19 21:09:19 -0700
commit2d549d806cd9ff1d7b7b237d818cd24c84957c83 (patch)
tree8f785812546112da3eddf81776052b2f0270d79a /wgpu
parentb40c44164646e853239d1b76fd8e4768eb21d9ac (diff)
downloadiced-2d549d806cd9ff1d7b7b237d818cd24c84957c83.tar.gz
iced-2d549d806cd9ff1d7b7b237d818cd24c84957c83.tar.bz2
iced-2d549d806cd9ff1d7b7b237d818cd24c84957c83.zip
Remove padding from triangle
Diffstat (limited to 'wgpu')
-rw-r--r--wgpu/src/triangle.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/wgpu/src/triangle.rs b/wgpu/src/triangle.rs
index 8636b331..141fc9af 100644
--- a/wgpu/src/triangle.rs
+++ b/wgpu/src/triangle.rs
@@ -425,18 +425,12 @@ impl Pipeline {
#[derive(Debug, Clone, Copy, Zeroable, Pod)]
struct Uniforms {
transform: [f32; 16],
- // We need to align this to 256 bytes to please `wgpu`...
- // TODO: Be smarter and stop wasting memory!
- _padding_a: [f32; 32],
- _padding_b: [f32; 16],
}
impl Default for Uniforms {
fn default() -> Self {
Self {
transform: *Transformation::identity().as_ref(),
- _padding_a: [0.0; 32],
- _padding_b: [0.0; 16],
}
}
}
@@ -445,8 +439,6 @@ impl From<Transformation> for Uniforms {
fn from(transformation: Transformation) -> Uniforms {
Self {
transform: transformation.into(),
- _padding_a: [0.0; 32],
- _padding_b: [0.0; 16],
}
}
}