Skip to content

Commit

Permalink
make mis-matched index test use the correct function
Browse files Browse the repository at this point in the history
  • Loading branch information
Vecvec committed Sep 26, 2024
1 parent 0e90de9 commit 9a9ac03
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions tests/tests/ray_tracing/as_create.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
use wgpu::{AccelerationStructureFlags, AccelerationStructureGeometryFlags, AccelerationStructureUpdateMode, BlasGeometrySizeDescriptors, BlasTriangleGeometrySizeDescriptor, CreateBlasDescriptor};
use wgpu::{
AccelerationStructureFlags, AccelerationStructureGeometryFlags,
AccelerationStructureUpdateMode, BlasGeometrySizeDescriptors,
BlasTriangleGeometrySizeDescriptor, CreateBlasDescriptor,
};
use wgpu_macros::gpu_test;
use wgpu_test::{fail, GpuTestConfiguration, TestingContext, TestParameters};
use wgpu_test::{fail, GpuTestConfiguration, TestParameters, TestingContext};
use wgt::{IndexFormat, VertexFormat};

#[gpu_test]
Expand All @@ -12,7 +16,6 @@ static BLAS_INVALID_VERTEX_FORMAT: GpuTestConfiguration = GpuTestConfiguration::
)
.run_sync(invalid_vertex_format_blas_create);


fn invalid_vertex_format_blas_create(ctx: TestingContext) {
//
// Create a BLAS with a format that is not allowed
Expand Down Expand Up @@ -51,7 +54,7 @@ static BLAS_MISMATCHED_INDEX: GpuTestConfiguration = GpuTestConfiguration::new()
.test_features_limits()
.features(wgpu::Features::RAY_TRACING_ACCELERATION_STRUCTURE),
)
.run_sync(invalid_vertex_format_blas_create);
.run_sync(mismatched_index_blas_create);

fn mismatched_index_blas_create(ctx: TestingContext) {
//
Expand Down Expand Up @@ -111,4 +114,4 @@ fn mismatched_index_blas_create(ctx: TestingContext) {
},
None,
);
}
}
2 changes: 1 addition & 1 deletion tests/tests/ray_tracing/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mod as_build;
mod as_create;
mod as_use_after_free;
mod scene;
mod as_create;

0 comments on commit 9a9ac03

Please sign in to comment.