Fix vec3 padding
This commit is contained in:
parent
c0b6078028
commit
136557f196
1 changed files with 2 additions and 0 deletions
|
@ -26,6 +26,7 @@ pub struct Vector3 {
|
||||||
pub x: f32,
|
pub x: f32,
|
||||||
pub y: f32,
|
pub y: f32,
|
||||||
pub z: f32,
|
pub z: f32,
|
||||||
|
pub _pad: f32
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
@ -239,6 +240,7 @@ fn main() {
|
||||||
x: 1.0,
|
x: 1.0,
|
||||||
y: 1.0,
|
y: 1.0,
|
||||||
z: 1.0,
|
z: 1.0,
|
||||||
|
_pad: 0.0
|
||||||
};
|
};
|
||||||
let uniform_color_buffer_info = vk::BufferCreateInfo {
|
let uniform_color_buffer_info = vk::BufferCreateInfo {
|
||||||
s_type: vk::StructureType::BufferCreateInfo,
|
s_type: vk::StructureType::BufferCreateInfo,
|
||||||
|
|
Loading…
Add table
Reference in a new issue