Skip to content

Commit

Permalink
fix issues with tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Vecvec committed Sep 14, 2024
1 parent 7400129 commit 3b573c8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/src/ray_cube_compute/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ impl crate::framework::Example for Example {
});

let blas_geo_size_desc = rt::BlasTriangleGeometrySizeDescriptor {
vertex_format: wgpu::VertexFormat::Float32x4,
vertex_format: wgpu::VertexFormat::Float32x3,
vertex_count: vertex_data.len() as u32,
index_format: Some(wgpu::IndexFormat::Uint16),
index_count: Some(index_data.len() as u32),
Expand Down
2 changes: 1 addition & 1 deletion examples/src/ray_cube_fragment/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ impl crate::framework::Example for Example {
});

let blas_geo_size_desc = rt::BlasTriangleGeometrySizeDescriptor {
vertex_format: wgpu::VertexFormat::Float32x4,
vertex_format: wgpu::VertexFormat::Float32x3,
vertex_count: vertex_data.len() as u32,
index_format: Some(wgpu::IndexFormat::Uint16),
index_count: Some(index_data.len() as u32),
Expand Down
3 changes: 2 additions & 1 deletion tests/tests/buffer_usages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ const NEEDS_MAPPABLE_PRIMARY_BUFFERS: &[Bu; 7] = &[
Bu::MAP_WRITE.union(Bu::MAP_READ),
Bu::MAP_READ.union(Bu::COPY_DST.union(Bu::STORAGE)),
Bu::MAP_WRITE.union(Bu::COPY_SRC.union(Bu::STORAGE)),
Bu::all(),
// these two require acceleration_structures feature
Bu::all().intersection(Bu::BLAS_INPUT.union(Bu::TLAS_INPUT).complement()),
];
const INVALID_BITS: Bu = Bu::from_bits_retain(0b1111111111111);
const ALWAYS_FAIL: &[Bu; 2] = &[Bu::empty(), INVALID_BITS];
Expand Down
2 changes: 1 addition & 1 deletion tests/tests/ray_tracing/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ fn execute(ctx: TestingContext) {
});

let blas_geo_size_desc = rt::BlasTriangleGeometrySizeDescriptor {
vertex_format: wgpu::VertexFormat::Float32x4,
vertex_format: wgpu::VertexFormat::Float32x3,
vertex_count: vertex_data.len() as u32,
index_format: Some(wgpu::IndexFormat::Uint16),
index_count: Some(index_data.len() as u32),
Expand Down

0 comments on commit 3b573c8

Please sign in to comment.