Skip to content

Commit 9b966bf

Browse files
andyleisersonjimblandy
authored andcommitted
Fix for destroyed resource errors
1 parent 468632f commit 9b966bf

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

cts_runner/test.lst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ webgpu:api,validation,encoding,cmds,index_access:*
2929
//FAIL: webgpu:api,validation,encoding,cmds,render,draw:*
3030
webgpu:api,validation,encoding,cmds,render,draw:index_buffer_OOB:*
3131
webgpu:api,validation,encoding,cmds,render,draw:unused_buffer_bound:*
32+
webgpu:api,validation,encoding,cmds,render,setIndexBuffer:index_buffer_state:*
33+
webgpu:api,validation,encoding,cmds,render,setVertexBuffer:vertex_buffer_state:*
3234
webgpu:api,validation,encoding,encoder_state:*
3335
webgpu:api,validation,encoding,encoder_open_state:non_pass_commands:*
3436
webgpu:api,validation,encoding,encoder_open_state:render_pass_commands:*

wgpu-core/src/command/mod.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ pub use timestamp_writes::PassTimestampWrites;
3131

3232
use self::memory_init::CommandBufferTextureMemoryActions;
3333

34+
use crate::binding_model::BindingError;
3435
use crate::command::transition_resources::TransitionResourcesError;
3536
use crate::device::queue::TempResource;
3637
use crate::device::{Device, DeviceError, MissingFeatures};
@@ -1060,6 +1061,18 @@ impl CommandEncoderError {
10601061
inner: RenderPassErrorInner::DestroyedResource(_),
10611062
..
10621063
})
1064+
| Self::RenderPass(RenderPassError {
1065+
inner: RenderPassErrorInner::RenderCommand(
1066+
RenderCommandError::DestroyedResource(_)
1067+
),
1068+
..
1069+
})
1070+
| Self::RenderPass(RenderPassError {
1071+
inner: RenderPassErrorInner::RenderCommand(RenderCommandError::BindingError(
1072+
BindingError::DestroyedResource(_)
1073+
)),
1074+
..
1075+
})
10631076
)
10641077
}
10651078
}

0 commit comments

Comments
 (0)