Fix RT validation error (#8132)

This commit is contained in:
Connor Fitzgerald 2025-08-23 15:09:25 -04:00 committed by GitHub
parent 167ff7b952
commit 37c4c88138
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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()