Skip to content

Commit

Permalink
Whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
cwfitzgerald committed Feb 9, 2023
1 parent 0ae32bc commit 7599867
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions wgpu/tests/regression/issue_3457.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ fn pass_reset_vertex_buffer() {
// We use two separate vertex buffers so we can delete one in between submisions
let vertex_buffer1 = ctx.device.create_buffer(&BufferDescriptor {
label: Some("vertex buffer 1"),
size: 6 * 16,
size: 3 * 16,
usage: BufferUsages::VERTEX,
mapped_at_creation: false,
});

let vertex_buffer2 = ctx.device.create_buffer(&BufferDescriptor {
label: Some("vertex buffer 2"),
size: 6 * 4,
size: 3 * 4,
usage: BufferUsages::VERTEX,
mapped_at_creation: false,
});
Expand Down Expand Up @@ -178,7 +178,7 @@ fn pass_reset_vertex_buffer() {

single_rpass.set_pipeline(&single_pipeline);
single_rpass.set_vertex_buffer(0, vertex_buffer1.slice(..));
single_rpass.draw(0..6, 0..1);
single_rpass.draw(0..3, 0..1);

drop(single_rpass);

Expand Down
2 changes: 1 addition & 1 deletion wgpu/tests/regression/issue_3457.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ fn single_buffer_vert(v_in: SingleVertexIn) -> @builtin(position) vec4<f32> {
}

@fragment
fn single_buffer_vert() -> @location(0) vec4<f32> {
fn single_buffer_frag() -> @location(0) vec4<f32> {
return vec4<f32>(0.0);
}

0 comments on commit 7599867

Please sign in to comment.