Skip to content

Commit 37c4c88

Browse files
authored
Fix RT validation error (#8132)
1 parent 167ff7b commit 37c4c88

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

wgpu-hal/src/vulkan/command.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ impl crate::CommandEncoder for super::CommandEncoder {
630630
.first_vertex(triangles.first_vertex);
631631
} else {
632632
range = range
633-
.primitive_count(triangles.vertex_count)
633+
.primitive_count(triangles.vertex_count / 3)
634634
.first_vertex(triangles.first_vertex);
635635
}
636636

wgpu-hal/src/vulkan/device.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2557,7 +2557,7 @@ impl crate::Device for super::Device {
25572557
triangle_data.index_type(conv::map_index_format(indices.format));
25582558
indices.count / 3
25592559
} else {
2560-
triangles.vertex_count
2560+
triangles.vertex_count / 3
25612561
};
25622562

25632563
let geometry = vk::AccelerationStructureGeometryKHR::default()

0 commit comments

Comments
 (0)