mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
Fix RT validation error (#8132)
This commit is contained in:
parent
167ff7b952
commit
37c4c88138
@ -630,7 +630,7 @@ impl crate::CommandEncoder for super::CommandEncoder {
|
||||
.first_vertex(triangles.first_vertex);
|
||||
} else {
|
||||
range = range
|
||||
.primitive_count(triangles.vertex_count)
|
||||
.primitive_count(triangles.vertex_count / 3)
|
||||
.first_vertex(triangles.first_vertex);
|
||||
}
|
||||
|
||||
|
||||
@ -2557,7 +2557,7 @@ impl crate::Device for super::Device {
|
||||
triangle_data.index_type(conv::map_index_format(indices.format));
|
||||
indices.count / 3
|
||||
} else {
|
||||
triangles.vertex_count
|
||||
triangles.vertex_count / 3
|
||||
};
|
||||
|
||||
let geometry = vk::AccelerationStructureGeometryKHR::default()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user