Skip to content

Commit

Permalink
Removed padding from meshlet.
Browse files Browse the repository at this point in the history
  • Loading branch information
facundo-villa committed Oct 31, 2023
1 parent e366730 commit 9f6a158
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions src/render_domain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,6 @@ struct Meshlet {{
uint16_t triangle_offset;
uint8_t vertex_count;
uint8_t triangle_count;
uint8_t padding[6];
}};
layout(set=0,binding=0,scalar) buffer readonly CameraBuffer {{
Expand Down Expand Up @@ -1667,7 +1666,6 @@ struct ShaderMeshletData {
triangle_offset: u16,
vertex_count: u8,
triangle_count: u8,
pad: [u8; 6],
}

#[repr(C)]
Expand Down Expand Up @@ -1775,7 +1773,6 @@ impl orchestrator::EntitySubscriber<Mesh> for VisibilityWorldRenderDomain {
triangle_offset:triangle_offset as u16 + mesh_triangle_count as u16,
vertex_count: meshlet_vertex_count,
triangle_count: meshlet_triangle_count,
pad: [0u8; 6],
};

meshlets.push(meshlet_data);
Expand Down
1 change: 0 additions & 1 deletion src/rendering/visibility_shader_generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ struct Meshlet {
uint16_t triangle_offset;
uint8_t vertex_count;
uint8_t triangle_count;
uint8_t padding[6];
};
layout(set=0,binding=6,scalar) buffer readonly MeshletsBuffer {
Expand Down

0 comments on commit 9f6a158

Please sign in to comment.