Skip to content

Commit

Permalink
remote debugging, oh joy
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectronicRU committed Nov 2, 2021
1 parent 15c8c55 commit 9b07119
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion crevice-tests/src/gpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,11 @@ where
"std140 value did not round-trip through wgpu successfully.\n\
Input: {:?}\n\
Output: {:?}\n\n\
Data: {:?}\n\
Bytes: {:?}\n\n\
GLSL shader:\n{}\n\n\
WGSL shader:\n{}",
value, output, glsl_shader, wgsl_shader,
value, output, data, bytes, glsl_shader, wgsl_shader,
);

panic!("wgpu round-trip failure for {}", T::NAME);
Expand Down
7 changes: 4 additions & 3 deletions crevice-tests/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -344,14 +344,14 @@ fn array_strides_small_value() {
fn array_strides_vec3() {
#[derive(Debug, PartialEq, AsStd140, AsStd430, GlslStruct)]
struct ArrayOfVector3 {
inner: [Vector3<f32>; 4],
inner: [Vector3<f32>; 5],
}

assert_std140!((size = 64, align = 16) ArrayOfVector3 {
assert_std140!((size = 80, align = 16) ArrayOfVector3 {
inner: 0,
});

assert_std430!((size = 64, align = 16) ArrayOfVector3 {
assert_std430!((size = 80, align = 16) ArrayOfVector3 {
inner: 0,
});

Expand All @@ -361,6 +361,7 @@ fn array_strides_vec3() {
[3.0, 4.0, 5.0].into(),
[6.0, 7.0, 8.0].into(),
[9.0, 10.0, 11.0].into(),
[12.0, 13.0, 14.0].into(),
],
})
}

0 comments on commit 9b07119

Please sign in to comment.