We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 167ff7b commit 37c4c88Copy full SHA for 37c4c88
wgpu-hal/src/vulkan/command.rs
@@ -630,7 +630,7 @@ impl crate::CommandEncoder for super::CommandEncoder {
630
.first_vertex(triangles.first_vertex);
631
} else {
632
range = range
633
- .primitive_count(triangles.vertex_count)
+ .primitive_count(triangles.vertex_count / 3)
634
635
}
636
wgpu-hal/src/vulkan/device.rs
@@ -2557,7 +2557,7 @@ impl crate::Device for super::Device {
2557
triangle_data.index_type(conv::map_index_format(indices.format));
2558
indices.count / 3
2559
2560
- triangles.vertex_count
+ triangles.vertex_count / 3
2561
};
2562
2563
let geometry = vk::AccelerationStructureGeometryKHR::default()
0 commit comments